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:
@@ -28,13 +28,13 @@ func TestStorageNetworkTemplate_CanonicalClasses(t *testing.T) {
|
||||
html := buf.String()
|
||||
|
||||
for _, want := range []string{
|
||||
`class="form-control"`, // the canonical input class
|
||||
`class="form-group"`, // the canonical field wrapper
|
||||
"SMB (Synology, QNAP", // protocol-honest ordering: SMB listed first
|
||||
"NFS (TrueNAS, Linux szerver)", // no bare "ajánlott" claim
|
||||
"Árva", // the orphan badge renders
|
||||
"minden felhasználó leképezése", // the Route-A guidance block
|
||||
"ns-hostid", // the live computed host-id span
|
||||
`class="form-control"`, // the canonical input class
|
||||
`class="form-group"`, // the canonical field wrapper
|
||||
"SMB (Synology, QNAP", // protocol-honest ordering: SMB listed first
|
||||
"NFS (TrueNAS, Linux szerver)", // no bare "ajánlott" claim
|
||||
"Árva", // the orphan badge renders
|
||||
"minden felhasználó leképezése", // the Route-A guidance block
|
||||
"ns-hostid", // the live computed host-id span
|
||||
"/api/storage/netstorage/add/status", // the poll-driven progress wiring
|
||||
} {
|
||||
if !strings.Contains(html, want) {
|
||||
@@ -42,8 +42,8 @@ func TestStorageNetworkTemplate_CanonicalClasses(t *testing.T) {
|
||||
}
|
||||
}
|
||||
for _, banned := range []string{
|
||||
"form-row", // nonexistent class — the old unstyled-look root cause
|
||||
"form-input", // nonexistent class
|
||||
"form-row", // nonexistent class — the old unstyled-look root cause
|
||||
"form-input", // nonexistent class
|
||||
`<summary class="btn`, // the summary-styled-as-button hack
|
||||
} {
|
||||
if strings.Contains(html, banned) {
|
||||
|
||||
Reference in New Issue
Block a user