style: gofmt normalization — no logic changes
gofmt -w across the controller tree (46 files) so gofmt -l is empty — disarms the
formatting landmine where a targeted edit + accidental gofmt -w swept ~46 unrelated
files. Pure formatting: whitespace + gofmt's optional-semicolon removal in reflowed
inline closures. One doc comment reworded ('' -> 'the empty string') to avoid gofmt's
Go-1.19 doc-comment typographic substitition ('' -> curly quote) muddying its meaning.
No build/vet/test behavior change.
This commit is contained in:
@@ -24,13 +24,13 @@ func lcStack(name, lifecycle string, deployed bool) stacks.Stack {
|
||||
// withdrawing an app dangerous in the first place.
|
||||
func TestVisibleCatalogStacks(t *testing.T) {
|
||||
in := []stacks.Stack{
|
||||
lcStack("bookstack", "", false), // available, not deployed → OFFERED
|
||||
lcStack("immich", "", true), // available, deployed → shown
|
||||
lcStack("plant-it", "abandoned", false), // withdrawn, not deployed → HIDDEN
|
||||
lcStack("plant-it-run", "abandoned", true),// withdrawn, DEPLOYED → shown
|
||||
lcStack("oldapp", "hidden", false), // withdrawn, not deployed → HIDDEN
|
||||
lcStack("oldapp-run", "hidden", true), // withdrawn, DEPLOYED → shown
|
||||
lcStack("typoapp", "bogus", false), // unknown → available → OFFERED (fail-open)
|
||||
lcStack("bookstack", "", false), // available, not deployed → OFFERED
|
||||
lcStack("immich", "", true), // available, deployed → shown
|
||||
lcStack("plant-it", "abandoned", false), // withdrawn, not deployed → HIDDEN
|
||||
lcStack("plant-it-run", "abandoned", true), // withdrawn, DEPLOYED → shown
|
||||
lcStack("oldapp", "hidden", false), // withdrawn, not deployed → HIDDEN
|
||||
lcStack("oldapp-run", "hidden", true), // withdrawn, DEPLOYED → shown
|
||||
lcStack("typoapp", "bogus", false), // unknown → available → OFFERED (fail-open)
|
||||
}
|
||||
got := map[string]bool{}
|
||||
for _, st := range visibleCatalogStacks(in) {
|
||||
|
||||
Reference in New Issue
Block a user