MCPcopy Create free account
hub / github.com/docker/cli / compareRandomizedStrings

Function compareRandomizedStrings

cli/command/container/opts_test.go:346–354  ·  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

344// check if (a == c && b == d) || (a == d && b == c)
345// because maps are randomized
346func compareRandomizedStrings(a, b, c, d string) error {
347 if a == c && b == d {
348 return nil
349 }
350 if a == d && b == c {
351 return nil
352 }
353 return errors.New("strings don't match")
354}
355
356// Simple parse with MacAddress validation
357func 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…