check if (a == c && b == d) || (a == d && b == c) because maps are randomized
(a, b, c, d string)
| 344 | // check if (a == c && b == d) || (a == d && b == c) |
| 345 | // because maps are randomized |
| 346 | func 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 |
| 357 | func TestParseWithMacAddress(t *testing.T) { |
no outgoing calls
no test coverage detected
searching dependent graphs…