MCPcopy
hub / github.com/coredns/coredns / TestLoop_SetAddressAndName

Function TestLoop_SetAddressAndName

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

Source from the content-addressed store, hash-verified

71}
72
73func TestLoop_SetAddressAndName(t *testing.T) {
74 l := New(".")
75 l.setAddress("127.0.0.1:1053")
76 if l.address() != "127.0.0.1:1053" {
77 t.Fatalf("expected address to be set")
78 }
79 if l.Name() != "loop" {
80 t.Fatalf("expected Name() to be 'loop', got %q", l.Name())
81 }
82}

Callers

nothing calls this directly

Calls 5

setAddressMethod · 0.80
addressMethod · 0.80
NewFunction · 0.70
FatalfMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…