Fix #7: implement AddSource flag, add as message

This commit is contained in:
2024-01-22 08:45:36 +01:00
committed by T.v.Dein
parent d53c1db7d0
commit 33798bddb3
3 changed files with 26 additions and 1 deletions

View File

@@ -115,6 +115,14 @@ var tests = []Tests{
Level: slog.LevelError,
},
},
{
name: "has-source",
want: "handler_test.go",
negate: false,
opts: yadu.Options{
AddSource: true,
},
},
{
// check if output is NOT colored when disabling it
name: "disable-color",