mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
lib/protoparser: go fmt
This commit is contained in:
parent
6d9f1d4227
commit
463a5bf76e
2 changed files with 5 additions and 5 deletions
|
@ -483,7 +483,7 @@ func AreIdenticalSeriesFast(s1, s2 string) bool {
|
|||
if n < 0 {
|
||||
// Invalid Prometheus line - it must contain at least a single space between metric name and value
|
||||
// Compare it in full with x2.
|
||||
n = len(x1)-1
|
||||
n = len(x1) - 1
|
||||
}
|
||||
n++
|
||||
if n > len(x2) || x1[:n] != x2[:n] {
|
||||
|
|
|
@ -33,10 +33,10 @@ func TestAreIdenticalSeriesFast(t *testing.T) {
|
|||
}
|
||||
}
|
||||
f("", "", true)
|
||||
f("", "a 1", false) // different number of metrics
|
||||
f(" ", " a 1", false) // different number of metrics
|
||||
f("a 1", "", false) // different number of metrics
|
||||
f(" a 1", " ", false) // different number of metrics
|
||||
f("", "a 1", false) // different number of metrics
|
||||
f(" ", " a 1", false) // different number of metrics
|
||||
f("a 1", "", false) // different number of metrics
|
||||
f(" a 1", " ", false) // different number of metrics
|
||||
f("foo", "foo", true) // consider series identical if they miss value
|
||||
f("foo 1", "foo 1", true)
|
||||
f("foo 1", "foo 2", true)
|
||||
|
|
Loading…
Reference in a new issue