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