MCPcopy
hub / github.com/karol-broda/snitch / TestResolveAddrsParallel_Empty

Function TestResolveAddrsParallel_Empty

internal/resolver/resolver_test.go:259–269  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

257}
258
259func 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
271func TestGlobalResolver(t *testing.T) {
272 // reset global resolver

Callers

nothing calls this directly

Calls 3

ResolveAddrsParallelMethod · 0.80
GetCacheSizeMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected