Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
12
func
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
20
func
TestLoop_NonHINFO(t *testing.T) {
21
l := New(
"."
)
Callers
nothing calls this directly
Calls
4
inc
Method · 0.80
seen
Method · 0.80
New
Function · 0.70
Errorf
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…