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

Struct addLabelNodesTestcase

internal/driver/tagroot_test.go:179–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177
178func TestAddLabelNodesMatchBooleans(t *testing.T) {
179 type addLabelNodesTestcase struct {
180 name string
181 tagroot, tagleaf []string
182 outputUnit string
183 rootm, leafm bool
184 // wantSampleFuncs contains expected stack functions and sample value after
185 // adding nodes, in the same order as in the profile. The format is as
186 // returned by stackCollapse function, which is "callee caller: <num>".
187 wantSampleFuncs []string
188 }
189 for _, tc := range []addLabelNodesTestcase{
190 {
191 name: "Without tagroot or tagleaf, add no extra nodes, and should not match",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected