@@ -408,35 +408,39 @@ func (m *mockPlugin) TypedName() plugins.TypedName { return m.t }
408408// Mock Scorer
409409type mockScorer struct { mockPlugin }
410410
411+ // compile-time type assertion
412+ var _ framework.Scorer = & mockScorer {}
413+
414+ func (m * mockScorer ) Category () framework.ScorerCategory {
415+ return framework .Distribution
416+ }
417+
411418func (m * mockScorer ) Score (context.Context , * types.CycleState , * types.LLMRequest , []types.Endpoint ) map [types.Endpoint ]float64 {
412419 return nil
413420}
414421
415422// Mock Picker
416423type mockPicker struct { mockPlugin }
417424
425+ // compile-time type assertion
426+ var _ framework.Picker = & mockPicker {}
427+
418428func (m * mockPicker ) Pick (context.Context , * types.CycleState , []* types.ScoredEndpoint ) * types.ProfileRunResult {
419429 return nil
420430}
421431
422432// Mock Handler
423433type mockHandler struct { mockPlugin }
424434
425- func (m * mockHandler ) Pick (
426- context.Context ,
427- * types.CycleState ,
428- * types.LLMRequest ,
429- map [string ]* framework.SchedulerProfile ,
430- map [string ]* types.ProfileRunResult ,
431- ) map [string ]* framework.SchedulerProfile {
435+ // compile-time type assertion
436+ var _ framework.ProfileHandler = & mockHandler {}
437+
438+ func (m * mockHandler ) Pick (context.Context , * types.CycleState , * types.LLMRequest , map [string ]* framework.SchedulerProfile ,
439+ map [string ]* types.ProfileRunResult ) map [string ]* framework.SchedulerProfile {
432440 return nil
433441}
434- func (m * mockHandler ) ProcessResults (
435- context.Context ,
436- * types.CycleState ,
437- * types.LLMRequest ,
438- map [string ]* types.ProfileRunResult ,
439- ) (* types.SchedulingResult , error ) {
442+ func (m * mockHandler ) ProcessResults (context.Context , * types.CycleState , * types.LLMRequest ,
443+ map [string ]* types.ProfileRunResult ) (* types.SchedulingResult , error ) {
440444 return nil , nil
441445}
442446
0 commit comments