func TestDecodeInto(t *testing.T) { … } // isRegistryEqual compares two registries for equality. This function is used in place of // reflect.DeepEqual() and cmp() as they don't compare function values. func isRegistryEqual(registryX, registryY Registry) bool { … } type mockNoopPlugin … func (p *mockNoopPlugin) Name() string { … } func NewMockNoopPluginFactory() PluginFactory { … } func TestMerge(t *testing.T) { … } func TestRegister(t *testing.T) { … } func TestUnregister(t *testing.T) { … }