MCPcopy
hub / github.com/grafana/tempo / Compare

Method Compare

pkg/tempopb/backendwork.pb.go:973–999  ·  view source on GitHub ↗
(that interface{})

Source from the content-addressed store, hash-verified

971 return 0
972}
973func (this *RetentionDetail) Compare(that interface{}) int {
974 if that == nil {
975 if this == nil {
976 return 0
977 }
978 return 1
979 }
980
981 that1, ok := that.(*RetentionDetail)
982 if !ok {
983 that2, ok := that.(RetentionDetail)
984 if ok {
985 that1 = &that2
986 } else {
987 return 1
988 }
989 }
990 if that1 == nil {
991 if this == nil {
992 return 0
993 }
994 return 1
995 } else if this == nil {
996 return -1
997 }
998 return 0
999}
1000func (this *RedactionDetail) Compare(that interface{}) int {
1001 if that == nil {
1002 if this == nil {

Callers 15

includeBlockFunction · 0.45
FindMethod · 0.45
NextMethod · 0.45
findTraceByIDFunction · 0.45
scopeSpanHashFunction · 0.45
resourceSpanHashFunction · 0.45
compareSpansFunction · 0.45
TestRowIteratorFunction · 0.45
FindMethod · 0.45
NextMethod · 0.45

Calls

no outgoing calls

Tested by 13

TestRowIteratorFunction · 0.36
TestRowIteratorFunction · 0.36
TestRowIteratorFunction · 0.36
TestTokenForIDCollisionFunction · 0.36
testEvaluatorFunction · 0.36
TestHashForCollisionRateFunction · 0.36