DialService represents a mock of wtf.DialService.
| 11 | |
| 12 | // DialService represents a mock of wtf.DialService. |
| 13 | type DialService struct { |
| 14 | FindDialByIDFn func(ctx context.Context, id int) (*wtf.Dial, error) |
| 15 | FindDialsFn func(ctx context.Context, filter wtf.DialFilter) ([]*wtf.Dial, int, error) |
| 16 | CreateDialFn func(ctx context.Context, dial *wtf.Dial) error |
| 17 | UpdateDialFn func(ctx context.Context, id int, upd wtf.DialUpdate) (*wtf.Dial, error) |
| 18 | DeleteDialFn func(ctx context.Context, id int) error |
| 19 | SetDialMembershipValueFn func(ctx context.Context, dialID, value int) error |
| 20 | AverageDialValueReportFn func(ctx context.Context, start, end time.Time, interval time.Duration) (*wtf.DialValueReport, error) |
| 21 | } |
| 22 | |
| 23 | func (s *DialService) FindDialByID(ctx context.Context, id int) (*wtf.Dial, error) { |
| 24 | return s.FindDialByIDFn(ctx, id) |
nothing calls this directly
no outgoing calls
no test coverage detected