| 177 | |
| 178 | func 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", |
nothing calls this directly
no outgoing calls
no test coverage detected