MCPcopy
hub / github.com/coredns/coredns / TestLoop

Function TestLoop

plugin/loop/loop_test.go:12–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestLoop(t *testing.T) {
13 l := New(".")
14 l.inc()
15 if l.seen() != 1 {
16 t.Errorf("Failed to inc loop, expected %d, got %d", 1, l.seen())
17 }
18}
19
20func TestLoop_NonHINFO(t *testing.T) {
21 l := New(".")

Callers

nothing calls this directly

Calls 4

incMethod · 0.80
seenMethod · 0.80
NewFunction · 0.70
ErrorfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…