Skip to content

Commit d10ba18

Browse files
committed
[tests] flesh out tabular tests
1 parent 4d9d04c commit d10ba18

25 files changed

Lines changed: 139 additions & 1 deletion

test/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,10 @@ dist_noinst_DATA = \
410410
logfile_metrics_unordered.csv \
411411
logfile_not_metrics.csv \
412412
logfile_tabular.csv \
413+
logfile_tabular_bom.csv \
414+
logfile_tabular_crlf.csv \
413415
logfile_tabular_multiline.csv \
416+
logfile_tabular_num_multiline.csv \
414417
logfile_tabular_synth.csv \
415418
logfile_multiline.0 \
416419
logfile_muxed_syslog.0 \
@@ -470,6 +473,7 @@ dist_noinst_DATA = \
470473
logfile_win_events_extras.csv \
471474
logfile_win_events_extras_quotes.csv \
472475
logfile_win_events_multiline.csv \
476+
logfile_win_events_quoted_hdr.csv \
473477
logfile_win_events_quotes.csv \
474478
logfile_with_a_really_long_name_to_test_a_bug_with_long_names.0 \
475479
logfile_with_zones.0 \

test/expected/test_tabular_format.sh_043a7ab08602d2d6af4c0c2d98f47a2941f8e2ce.err

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
log_line,log_extra_fields
2+
0,"{""Mes,sage"":""hello""}"
3+
4,"{""Mes,sage"":""world""}"

test/expected/test_tabular_format.sh_0bba304f34ae07c4fa9e91e0b42f5fe98654a6a8.err

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
10/22/2018 04:13:27 AM docker first event
2+
Id: 1001
3+
Version: 1
4+
CustomTag: alpha
5+
SomeNumber: 42
6+
Floaty: 3.140000
7+
10/22/2018 04:13:28 AM docker second
8+
event
9+
Id: 1002
10+
Version: 2
11+
CustomTag: beta
12+
SomeNumber: 100
13+
Floaty: 2.710000

test/expected/test_tabular_format.sh_1236c3484cdb92c3fd1630c9b630365292397b21.err

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
log_line,log_time,log_level,log_body
2+
0,2026-04-14 10:00:00.000000,info,with BOM prefix

test/expected/test_tabular_format.sh_1fa70f2d96978fe568384fb945877ff6b706ecf4.err

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
log_time,log_level,log_opid,log_body
2+
2026-04-14 11:00:00.000000,info,op1,first row
3+
2026-04-14 11:00:01.000000,warning,op1,"multi-line message
4+
that continues onto
5+
a third line"
6+
2026-04-14 11:00:02.000000,info,op2,after multi-line

test/expected/test_tabular_format.sh_45d169bb667f91f1251fa2d0939b6483364e1812.err

Whitespace-only changes.

0 commit comments

Comments
 (0)