mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 15:06:26 +00:00
wip
This commit is contained in:
parent
f4ac7c50b6
commit
01f63b9e94
1 changed files with 27 additions and 0 deletions
|
@ -4,6 +4,33 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
func TestParsePipeUnpackLogfmtSuccess(t *testing.T) {
|
||||
f := func(pipeStr string) {
|
||||
t.Helper()
|
||||
expectParsePipeSuccess(t, pipeStr)
|
||||
}
|
||||
|
||||
f(`unpack_logfmt`)
|
||||
f(`unpack_logfmt from x`)
|
||||
f(`unpack_logfmt from x result_prefix abc`)
|
||||
f(`unpack_logfmt result_prefix abc`)
|
||||
}
|
||||
|
||||
func TestParsePipeUnpackLogfmtFailure(t *testing.T) {
|
||||
f := func(pipeStr string) {
|
||||
t.Helper()
|
||||
expectParsePipeFailure(t, pipeStr)
|
||||
}
|
||||
|
||||
f(`unpack_logfmt foo`)
|
||||
f(`unpack_logfmt from`)
|
||||
f(`unpack_logfmt from x y`)
|
||||
f(`unpack_logfmt from x result_prefix`)
|
||||
f(`unpack_logfmt from x result_prefix a b`)
|
||||
f(`unpack_logfmt result_prefix`)
|
||||
f(`unpack_logfmt result_prefix a b`)
|
||||
}
|
||||
|
||||
func TestPipeUnpackLogfmt(t *testing.T) {
|
||||
f := func(pipeStr string, rows, rowsExpected [][]Field) {
|
||||
t.Helper()
|
||||
|
|
Loading…
Reference in a new issue