MCPcopy Create free account
hub / github.com/google/pprof / TestMultilinePrintableName

Function TestMultilinePrintableName

internal/graph/dotgraph_test.go:290–302  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

288}
289
290func TestMultilinePrintableName(t *testing.T) {
291 ni := &NodeInfo{
292 Name: "test1.test2::test3",
293 File: "src/file.cc",
294 Address: 123,
295 Lineno: 999,
296 }
297
298 want := fmt.Sprintf(`%016x\ntest1\ntest2\ntest3\nfile.cc:999\n`, 123)
299 if got := multilinePrintableName(ni); got != want {
300 t.Errorf("multilinePrintableName(%#v) == %q, want %q", ni, got, want)
301 }
302}
303
304func TestTagCollapse(t *testing.T) {
305

Callers

nothing calls this directly

Calls 1

multilinePrintableNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…