mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Make linter happy
Signed-off-by: Marco Pracucci <marco@pracucci.com>
This commit is contained in:
parent
0df8e0fac1
commit
5d7eb6d8f9
|
@ -615,17 +615,20 @@ func TestStringMatcherFromRegexp_Quest(t *testing.T) {
|
|||
expectedZeroOrOneMatchers: 1,
|
||||
expectedMatches: []string{"test", "test!"},
|
||||
expectedNotMatches: []string{"test\n", "tes", "test!!"},
|
||||
}, {
|
||||
},
|
||||
{
|
||||
pattern: ".?test",
|
||||
expectedZeroOrOneMatchers: 1,
|
||||
expectedMatches: []string{"test", "!test"},
|
||||
expectedNotMatches: []string{"\ntest", "tes", "test!"},
|
||||
}, {
|
||||
},
|
||||
{
|
||||
pattern: "(aaa.?|bbb.?)",
|
||||
expectedZeroOrOneMatchers: 2,
|
||||
expectedMatches: []string{"aaa", "aaaX", "bbb", "bbbX"},
|
||||
expectedNotMatches: []string{"aa", "aaaXX", "aaa\n", "bb", "bbbXX", "bbb\n"},
|
||||
}, {
|
||||
},
|
||||
{
|
||||
pattern: ".*aaa.?",
|
||||
expectedZeroOrOneMatchers: 1,
|
||||
expectedMatches: []string{"aaa", "Xaaa", "aaaX", "XXXaaa", "XXXaaaX"},
|
||||
|
|
Loading…
Reference in a new issue