(t *testing.T)
| 257 | } |
| 258 | |
| 259 | func TestResolveAddrsParallel_Empty(t *testing.T) { |
| 260 | r := New(100 * time.Millisecond) |
| 261 | |
| 262 | // should not panic with empty input |
| 263 | r.ResolveAddrsParallel([]string{}) |
| 264 | r.ResolveAddrsParallel(nil) |
| 265 | |
| 266 | if r.GetCacheSize() != 0 { |
| 267 | t.Errorf("expected cache size 0, got %d", r.GetCacheSize()) |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | func TestGlobalResolver(t *testing.T) { |
| 272 | // reset global resolver |
nothing calls this directly
no test coverage detected