MCPcopy
hub / github.com/dapr/dapr / Fake

Struct Fake

pkg/scheduler/server/fake/fake.go:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27)
28
29type Fake struct {
30 client schedulerv1pb.SchedulerClient
31
32 scheduleJobFn func(context.Context, *schedulerv1pb.ScheduleJobRequest) (*schedulerv1pb.ScheduleJobResponse, error)
33 deleteJobFn func(context.Context, *schedulerv1pb.DeleteJobRequest) (*schedulerv1pb.DeleteJobResponse, error)
34 getJobFn func(context.Context, *schedulerv1pb.GetJobRequest) (*schedulerv1pb.GetJobResponse, error)
35 listJobsFn func(context.Context, *schedulerv1pb.ListJobsRequest) (*schedulerv1pb.ListJobsResponse, error)
36 watchHostsFn func(*schedulerv1pb.WatchHostsRequest, schedulerv1pb.Scheduler_WatchHostsServer) error
37 watchJobsFn func(schedulerv1pb.Scheduler_WatchJobsServer) error
38 deleteByMetadataFn func(ctx context.Context, req *schedulerv1pb.DeleteByMetadataRequest) (*schedulerv1pb.DeleteByMetadataResponse, error)
39 deleteByNamePrefixFn func(ctx context.Context, req *schedulerv1pb.DeleteByNamePrefixRequest) (*schedulerv1pb.DeleteByNamePrefixResponse, error)
40}
41
42func New(t *testing.T) *Fake {
43 t.Helper()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected