MCPcopy Create free account
hub / github.com/google/pprof / TestNormalizeIncompatibleProfiles

Function TestNormalizeIncompatibleProfiles

profile/profile_test.go:1064–1071  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1062}
1063
1064func 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
1074func locationHash(s *Sample) string {

Callers

nothing calls this directly

Calls 2

CopyMethod · 0.80
NormalizeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…