Skip to content

Commit 31a761e

Browse files
authored
Merge pull request #44 from yeya24/update-gomo
update go mod
2 parents 66dbcb5 + 6b9e595 commit 31a761e

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

cmd/promlinter/list_test.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ func TestLabel(t *testing.T) {
1313

1414
metrics := promlinter.RunList(fs, findFiles([]string{"../../testdata/"}, fs), true)
1515

16-
if len(metrics) != 10 {
17-
t.Fatal()
18-
}
19-
20-
assert.Equal(t, []string{"namespace", "name"}, metrics[7].Labels())
21-
assert.Equal(t, []string{"namespace", "name", "const-label1=value1", "const-label2=?"}, metrics[8].Labels())
22-
assert.Equal(t, []string{"namespace", "name"}, metrics[9].Labels())
16+
assert.Equal(t, 11, len(metrics))
17+
assert.Equal(t, []string{"namespace", "name"}, metrics[8].Labels())
18+
assert.Equal(t, []string{"namespace", "name", "const-label1=value1", "const-label2=?"}, metrics[9].Labels())
19+
assert.Equal(t, []string{"namespace", "name"}, metrics[10].Labels())
2320
}

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ require (
1515
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect
1616
github.com/beorn7/perks v1.0.1 // indirect
1717
github.com/cespare/xxhash/v2 v2.1.2 // indirect
18+
github.com/davecgh/go-spew v1.1.1 // indirect
1819
github.com/golang/protobuf v1.5.2 // indirect
1920
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
21+
github.com/pmezard/go-difflib v1.0.0 // indirect
2022
github.com/prometheus/common v0.32.1 // indirect
2123
github.com/prometheus/procfs v0.7.3 // indirect
2224
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect
2325
google.golang.org/protobuf v1.26.0 // indirect
26+
gopkg.in/yaml.v3 v3.0.1 // indirect
2427
)

go.sum

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,9 @@ github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6Mwd
187187
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
188188
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
189189
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
190-
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
191-
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
192190
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
193191
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
194192
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
195-
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
196-
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
197193
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
198194
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
199195
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
@@ -466,7 +462,6 @@ gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
466462
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
467463
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
468464
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
469-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
470465
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
471466
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
472467
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=

0 commit comments

Comments
 (0)