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

Method Equal

pkg/tempopb/backendwork.pb.go:1134–1169  ·  pkg/tempopb/backendwork.pb.go::JobDetail.Equal
(that interface{})

Source from the content-addressed store, hash-verified

1132 return true
1133}
1134func (this *JobDetail) Equal(that interface{}) bool {
1135 if that == nil {
1136 return this == nil
1137 }
1138
1139 that1, ok := that.(*JobDetail)
1140 if !ok {
1141 that2, ok := that.(JobDetail)
1142 if ok {
1143 that1 = &that2
1144 } else {
1145 return false
1146 }
1147 }
1148 if that1 == nil {
1149 return this == nil
1150 } else if this == nil {
1151 return false
1152 }
1153 if this.Tenant != that1.Tenant {
1154 return false
1155 }
1156 if !this.Compaction.Equal(that1.Compaction) {
1157 return false
1158 }
1159 if !this.Retention.Equal(that1.Retention) {
1160 return false
1161 }
1162 if !this.Redaction.Equal(that1.Redaction) {
1163 return false
1164 }
1165 if this.BatchId != that1.BatchId {
1166 return false
1167 }
1168 return true
1169}
1170func (this *RedactionResult) Equal(that interface{}) bool {
1171 if that == nil {
1172 return this == nil

Callers 15

TestApplyToOptionsFunction · 0.45
TestValidateConfigFunction · 0.45
TestDeprecatedVersionsFunction · 0.45
TestDBFunction · 0.45
TestBlockShardingFunction · 0.45
TestBlockCleanupFunction · 0.45
checkBlocklistsFunction · 0.45
TestIncludeBlockFunction · 0.45
testCompleteBlockFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected