TestMergeMain tests merge leaves the main binary in place.
(t *testing.T)
| 800 | |
| 801 | // TestMergeMain tests merge leaves the main binary in place. |
| 802 | func TestMergeMain(t *testing.T) { |
| 803 | prof := testProfile1.Copy() |
| 804 | p1, err := Merge([]*Profile{prof}) |
| 805 | if err != nil { |
| 806 | t.Fatalf("merge error: %v", err) |
| 807 | } |
| 808 | if cpuM[0].File != p1.Mapping[0].File { |
| 809 | t.Errorf("want Mapping[0]=%s got %s", cpuM[0].File, p1.Mapping[0].File) |
| 810 | } |
| 811 | } |
| 812 | |
| 813 | func TestMerge(t *testing.T) { |
| 814 | // Aggregate a profile with itself and once again with a factor of |