testSample returns a profile sample with specified value and stack. Note: callees come first in sample stacks.
(value int64, locs ...*profile.Location)
| 254 | // testSample returns a profile sample with specified value and stack. |
| 255 | // Note: callees come first in sample stacks. |
| 256 | func testSample(value int64, locs ...*profile.Location) *profile.Sample { |
| 257 | return &profile.Sample{ |
| 258 | Value: []int64{value}, |
| 259 | Location: locs, |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | // makeTestProfile returns a profile with specified samples that uses testL/testF/testM |
| 264 | // (defined in report_test.go). |
no outgoing calls
no test coverage detected
searching dependent graphs…