Skip to content

Commit 0ca41cc

Browse files
committed
2 more test cases
Signed-off-by: Callum Styan <[email protected]>
1 parent 6d17803 commit 0ca41cc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

internal/entryhuman/entry_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,22 @@ func TestEntry_Optimized(t *testing.T) {
384384
),
385385
},
386386
},
387+
{
388+
"allLogLevels",
389+
slog.SinkEntry{
390+
Level: slog.LevelCritical, // Test Critical
391+
Message: "critical",
392+
Time: kt,
393+
},
394+
},
395+
{
396+
"fatalLevel",
397+
slog.SinkEntry{
398+
Level: slog.LevelFatal, // Test Fatal
399+
Message: "fatal",
400+
Time: kt,
401+
},
402+
},
387403
}
388404

389405
for _, tc := range ents {

0 commit comments

Comments
 (0)