Skip to content

Commit d6556ed

Browse files
committed
Add static check to ensure plugin implements PrepareDataPlugin interface
1 parent 214d28d commit d6556ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/epp/scheduling/framework/plugins/multi/prefix/plugin_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@ import (
3030
"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/backend"
3131
backendmetrics "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/backend/metrics"
3232
"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/plugins"
33+
"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/requestcontrol"
3334
"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/types"
3435
)
3536

37+
// static check to ensure Plugin implements the PrepareDataPlugin interface.
38+
var _ requestcontrol.PrepareDataPlugin = &Plugin{}
39+
3640
func TestPrefixPluginCompletion(t *testing.T) {
3741
config := Config{
3842
BlockSize: 4,

0 commit comments

Comments
 (0)