File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ require (
18
18
github.com/evanphx/json-patch v0.0.0-20180720181644-f195058310bd
19
19
github.com/gofrs/uuid v3.2.0+incompatible
20
20
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
21
+ github.com/google/go-cmp v0.3.1
21
22
github.com/hashicorp/hcl v1.0.0 // indirect
22
23
github.com/influxdata/influxdb v1.6.1 // indirect
23
24
github.com/julienschmidt/httprouter v1.1.0
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekf
35
35
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b /go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q =
36
36
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM =
37
37
github.com/golang/protobuf v1.2.0 /go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U =
38
+ github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg =
39
+ github.com/google/go-cmp v0.3.1 /go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU =
38
40
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4 =
39
41
github.com/hashicorp/hcl v1.0.0 /go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ =
40
42
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI =
Original file line number Diff line number Diff line change 1
1
package prometheusmetrics
2
2
3
3
import (
4
- "reflect"
5
4
"testing"
6
5
6
+ "github.com/google/go-cmp/cmp"
7
+
7
8
"github.com/prometheus/client_golang/prometheus"
8
9
"github.com/stretchr/testify/assert"
9
10
)
@@ -59,6 +60,6 @@ func TestRegisterLabelPermutations(t *testing.T) {
59
60
resultLabels = append (resultLabels , label )
60
61
})
61
62
62
- assert .True (t , reflect . DeepEqual (test .expectedLabels , resultLabels ))
63
+ assert .True (t , cmp . Equal (test .expectedLabels , resultLabels ))
63
64
}
64
65
}
You can’t perform that action at this time.
0 commit comments