1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
wakapi/mocks/duration_service.go

17 lines
360 B
Go
Raw Normal View History

package mocks
import (
"github.com/muety/wakapi/models"
"github.com/stretchr/testify/mock"
"time"
)
type DurationServiceMock struct {
mock.Mock
}
2021-12-26 15:25:41 +03:00
func (m *DurationServiceMock) Get(time time.Time, time2 time.Time, user *models.User) (models.Durations, error) {
args := m.Called(time, time2, user)
2021-12-26 15:25:41 +03:00
return args.Get(0).(models.Durations), args.Error(1)
}