locationHash constructs a string to use as a hashkey for a sample, based on its locations
(s *Sample)
| 1072 | |
| 1073 | // locationHash constructs a string to use as a hashkey for a sample, based on its locations |
| 1074 | func locationHash(s *Sample) string { |
| 1075 | var tb string |
| 1076 | for _, l := range s.Location { |
| 1077 | for _, ln := range l.Line { |
| 1078 | tb = tb + fmt.Sprintf("%s:%d:%d@%d ", ln.Function.Name, ln.Line, ln.Column, l.Address) |
| 1079 | } |
| 1080 | } |
| 1081 | return tb |
| 1082 | } |
| 1083 | |
| 1084 | func TestHasLabel(t *testing.T) { |
| 1085 | var testcases = []struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…