1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
wakapi/mocks/duration_service.go
Ferdinand Mütsch ee501ca3c5 fix: mocks
2022-01-02 12:02:12 +01:00

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)
}