MCPcopy
hub / github.com/nektos/act / compareRandomizedStrings

Function compareRandomizedStrings

pkg/container/docker_cli_test.go:354–362  ·  view source on GitHub ↗

check if (a == c && b == d) || (a == d && b == c) because maps are randomized

(a, b, c, d string)

Source from the content-addressed store, hash-verified

352// check if (a == c && b == d) || (a == d && b == c)
353// because maps are randomized
354func compareRandomizedStrings(a, b, c, d string) error {
355 if a == c && b == d {
356 return nil
357 }
358 if a == d && b == c {
359 return nil
360 }
361 return errors.New("strings don't match")
362}
363
364// Simple parse with MacAddress validation
365func TestParseWithMacAddress(t *testing.T) {

Callers 1

TestParseWithVolumesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…