@@ -437,7 +437,7 @@ func TestCreateMissingDataProducers(t *testing.T) {
437437
438438// mockMayConsumerPlugin is a plugin that only optionally consumes certain data keys.
439439type mockMayConsumerPlugin struct {
440- name string
440+ name string
441441 optionalConsumes map [fwkplugin.DataKey ]any
442442}
443443
@@ -455,8 +455,8 @@ func (m *mockMayConsumerPlugin) OptionalConsumes() map[fwkplugin.DataKey]any {
455455// This models a real plugin like prefix cache scorer — requires prefix-match data,
456456// but optionally uses tokenized input and falls back to raw text if unavailable.
457457type mockMixedConsumerPlugin struct {
458- name string
459- consumes map [fwkplugin.DataKey ]any
458+ name string
459+ consumes map [fwkplugin.DataKey ]any
460460 optionalConsumes map [fwkplugin.DataKey ]any
461461}
462462
@@ -490,7 +490,7 @@ func TestCreateMissingDataProducers_MayConsume(t *testing.T) {
490490 name : "OptionalConsumes key with no producer — warning only, no error" ,
491491 existingPlugins : []fwkplugin.Plugin {
492492 & mockMayConsumerPlugin {
493- name : "optional-consumer" ,
493+ name : "optional-consumer" ,
494494 optionalConsumes : map [fwkplugin.DataKey ]any {keyA : nil },
495495 },
496496 },
@@ -502,7 +502,7 @@ func TestCreateMissingDataProducers_MayConsume(t *testing.T) {
502502 existingPlugins : []fwkplugin.Plugin {
503503 & mockDataProducerP {name : "producer" , produces : map [fwkplugin.DataKey ]any {keyA : nil }},
504504 & mockMayConsumerPlugin {
505- name : "optional-consumer" ,
505+ name : "optional-consumer" ,
506506 optionalConsumes : map [fwkplugin.DataKey ]any {keyA : nil },
507507 },
508508 },
@@ -518,8 +518,8 @@ func TestCreateMissingDataProducers_MayConsume(t *testing.T) {
518518 existingPlugins : []fwkplugin.Plugin {
519519 & mockDataProducerP {name : "required-producer" , produces : map [fwkplugin.DataKey ]any {keyA : nil }},
520520 & mockMixedConsumerPlugin {
521- name : "prefix-cache-scorer" ,
522- consumes : map [fwkplugin.DataKey ]any {keyA : nil },
521+ name : "prefix-cache-scorer" ,
522+ consumes : map [fwkplugin.DataKey ]any {keyA : nil },
523523 optionalConsumes : map [fwkplugin.DataKey ]any {fwkplugin .NewDataKey ("tokenized-input" , "tokenizer" ): nil },
524524 },
525525 },
0 commit comments