Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions internal/mocks/config_store_copies_guard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ import (
"testing"
)

// handRolledConfigStoreAllowlist lists the hand-rolled config.StoreInterface
// copies that predate this guard and are still waiting to be folded onto
// MockConfigStore (issue #76). It may only shrink: an entry whose type no
// longer hand-rolls the interface fails the guard until it is removed here.
var handRolledConfigStoreAllowlist = map[string]bool{
"internal/server.mockConfigStoreForHealth": true,
}
// handRolledConfigStoreAllowlist lists hand-rolled config.StoreInterface copies
// that are still waiting to be folded onto MockConfigStore (issue #76). It is
// empty now that internal/server.mockConfigStoreForHealth embeds
// MockConfigStore, and it may only shrink: an entry whose type no longer
// hand-rolls the interface fails the guard until it is removed here.
var handRolledConfigStoreAllowlist = map[string]bool{}

// TestNoHandRolledConfigStoreMocks keeps test doubles of config.StoreInterface
// from being written out method by method. Every such copy needs a new stub for
Expand Down
Loading
Loading