(t *testing.T, mapper *addressRewriteMapper, candidateType CandidateType, localIP string)
| 45 | } |
| 46 | |
| 47 | func assertNoExternalMapping(t *testing.T, mapper *addressRewriteMapper, candidateType CandidateType, localIP string) { |
| 48 | t.Helper() |
| 49 | |
| 50 | ips, matched, _, err := mapper.findExternalIPs(candidateType, localIP, "") |
| 51 | assert.NoError(t, err) |
| 52 | assert.False(t, matched) |
| 53 | assert.Nil(t, ips) |
| 54 | } |
| 55 | |
| 56 | func TestValidateIPString(t *testing.T) { |
| 57 | var ip net.IP |
no test coverage detected
searching dependent graphs…