| 27 | ) |
| 28 | |
| 29 | type 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 | |
| 42 | func New(t *testing.T) *Fake { |
| 43 | t.Helper() |
nothing calls this directly
no outgoing calls
no test coverage detected