MCPcopy Index your code
hub / github.com/coder/coder / TestFuncNameMethod

Function TestFuncNameMethod

coderd/tracing/util_test.go:26–29  ·  view source on GitHub ↗

nolint:paralleltest

(t *testing.T)

Source from the content-addressed store, hash-verified

24
25//nolint:paralleltest
26func TestFuncNameMethod(t *testing.T) {
27 fn := foo{}.bar()
28 assert.Equal(t, "tracing_test.foo.bar", fn)
29}
30
31func (*foo) baz() string {
32 return tracing.FuncName()

Callers

nothing calls this directly

Calls 2

barMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected