mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
17 lines
360 B
Go
17 lines
360 B
Go
package mocks
|
|
|
|
import (
|
|
"github.com/muety/wakapi/models"
|
|
"github.com/stretchr/testify/mock"
|
|
"time"
|
|
)
|
|
|
|
type DurationServiceMock struct {
|
|
mock.Mock
|
|
}
|
|
|
|
func (m *DurationServiceMock) Get(time time.Time, time2 time.Time, user *models.User) (models.Durations, error) {
|
|
args := m.Called(time, time2, user)
|
|
return args.Get(0).(models.Durations), args.Error(1)
|
|
}
|