Skip to content

Commit

Permalink
Add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jeschkies committed Nov 13, 2023
1 parent 144e43f commit 155cfb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/logql/serialize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ func TestJSONSerializationRoundTrip(t *testing.T) {
"bin op": {
query: `(count_over_time({env="prod", app=~"loki.*"}[5m]) >= 0)`,
},
"label filter": {
query: `sum_over_time({env="prod", app=~"loki.*"} | byte>128 | unwrap bytes[5m])`,
},
"regexp": {
query: `{env="prod", app=~"loki.*"} |~ ".*foo.*"`,
},
}

for name, test := range tests {
Expand Down

0 comments on commit 155cfb0

Please sign in to comment.