all: fix some typos (#13863)
Signed-off-by: carehabit <shenyuting@outlook.com>
This commit is contained in:
parent
5e2caa32e7
commit
a672662073
@ -25,20 +25,20 @@ import (
|
||||
|
||||
func TestLabels_String(t *testing.T) {
|
||||
cases := []struct {
|
||||
lables Labels
|
||||
labels Labels
|
||||
expected string
|
||||
}{
|
||||
{
|
||||
lables: FromStrings("t1", "t1", "t2", "t2"),
|
||||
labels: FromStrings("t1", "t1", "t2", "t2"),
|
||||
expected: "{t1=\"t1\", t2=\"t2\"}",
|
||||
},
|
||||
{
|
||||
lables: Labels{},
|
||||
labels: Labels{},
|
||||
expected: "{}",
|
||||
},
|
||||
}
|
||||
for _, c := range cases {
|
||||
str := c.lables.String()
|
||||
str := c.labels.String()
|
||||
require.Equal(t, c.expected, str)
|
||||
}
|
||||
}
|
||||
|
@ -1045,7 +1045,7 @@ func visitStringMatcher(matcher StringMatcher, callback func(matcher StringMatch
|
||||
visitStringMatcher(entry, callback)
|
||||
}
|
||||
|
||||
// No nested matchers for the folling ones.
|
||||
// No nested matchers for the following ones.
|
||||
case emptyStringMatcher:
|
||||
case *equalStringMatcher:
|
||||
case *equalMultiStringSliceMatcher:
|
||||
|
2
model/rulefmt/testdata/bad_field.bad.yaml
vendored
2
model/rulefmt/testdata/bad_field.bad.yaml
vendored
@ -6,4 +6,4 @@ groups:
|
||||
labels:
|
||||
instance: localhost
|
||||
annotation:
|
||||
summary: annonations is written without s above
|
||||
summary: annotations is written without s above
|
||||
|
@ -409,7 +409,7 @@ func generateOTLPWriteRequest(t *testing.T) pmetricotlp.ExportRequest {
|
||||
|
||||
// Generate One Counter, One Gauge, One Histogram, One Exponential-Histogram
|
||||
// with resource attributes: service.name="test-service", service.instance.id="test-instance", host.name="test-host"
|
||||
// with metric attibute: foo.bar="baz"
|
||||
// with metric attribute: foo.bar="baz"
|
||||
|
||||
timestamp := time.Now()
|
||||
|
||||
|
@ -42,7 +42,7 @@ import (
|
||||
"github.com/prometheus/prometheus/tsdb/chunks"
|
||||
tsdb_errors "github.com/prometheus/prometheus/tsdb/errors"
|
||||
"github.com/prometheus/prometheus/tsdb/fileutil"
|
||||
_ "github.com/prometheus/prometheus/tsdb/goversion" // Load the package into main to make sure minium Go version is met.
|
||||
_ "github.com/prometheus/prometheus/tsdb/goversion" // Load the package into main to make sure minimum Go version is met.
|
||||
"github.com/prometheus/prometheus/tsdb/tsdbutil"
|
||||
"github.com/prometheus/prometheus/tsdb/wlog"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user