MCPcopy Index your code
hub / github.com/coder/coder / Get

Method Get

coderd/schedule/mock.go:18–24  ·  view source on GitHub ↗
(ctx context.Context, db database.Store, templateID uuid.UUID)

Source from the content-addressed store, hash-verified

16var _ TemplateScheduleStore = MockTemplateScheduleStore{}
17
18func (m MockTemplateScheduleStore) Get(ctx context.Context, db database.Store, templateID uuid.UUID) (TemplateScheduleOptions, error) {
19 if m.GetFn != nil {
20 return m.GetFn(ctx, db, templateID)
21 }
22
23 return NewAGPLTemplateScheduleStore().Get(ctx, db, templateID)
24}
25
26func (m MockTemplateScheduleStore) Set(ctx context.Context, db database.Store, template database.Template, options TemplateScheduleOptions) (database.Template, error) {
27 if m.SetFn != nil {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65

Tested by

no test coverage detected