(t *testing.T)
| 654 | const totalSamples = int64(11112) |
| 655 | |
| 656 | func TestAggregation(t *testing.T) { |
| 657 | prof := testProfile6.Copy() |
| 658 | for _, resolution := range []string{"precise", "columns", "fileline", "inline_function", "function"} { |
| 659 | a := aggTests[resolution] |
| 660 | if !a.precise { |
| 661 | if err := prof.Aggregate(a.inlineFrame, a.function, a.fileline, a.fileline, a.column, false); err != nil { |
| 662 | t.Error("aggregating to " + resolution + ":" + err.Error()) |
| 663 | } |
| 664 | } |
| 665 | if err := checkAggregation(prof, &a); err != nil { |
| 666 | t.Error("failed aggregation to " + resolution + ": " + err.Error()) |
| 667 | } |
| 668 | } |
| 669 | } |
| 670 | |
| 671 | // checkAggregation verifies that the profile remained consistent |
| 672 | // with its aggregation. |
nothing calls this directly
no test coverage detected
searching dependent graphs…