(t *testing.T)
| 1062 | } |
| 1063 | |
| 1064 | func TestNormalizeIncompatibleProfiles(t *testing.T) { |
| 1065 | p := testProfile1.Copy() |
| 1066 | pb := testProfile3.Copy() |
| 1067 | |
| 1068 | if err := p.Normalize(pb); err == nil { |
| 1069 | t.Errorf("Expected an error") |
| 1070 | } |
| 1071 | } |
| 1072 | |
| 1073 | // locationHash constructs a string to use as a hashkey for a sample, based on its locations |
| 1074 | func locationHash(s *Sample) string { |