MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestTrimStrings

Function TestTrimStrings

internal/watcher/diff/config_diff_test.go:493–498  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

491}
492
493func TestTrimStrings(t *testing.T) {
494 out := trimStrings([]string{" a ", "b", " c"})
495 if len(out) != 3 || out[0] != "a" || out[1] != "b" || out[2] != "c" {
496 t.Fatalf("unexpected trimmed strings: %v", out)
497 }
498}

Callers

nothing calls this directly

Calls 1

trimStringsFunction · 0.85

Tested by

no test coverage detected