From c81f13f7b0b65bf031fc40997bba9a53a862bcea Mon Sep 17 00:00:00 2001 From: Matei-Marius Micu Date: Sat, 2 May 2020 03:53:36 +0300 Subject: [PATCH] Add simple test for logging levels --- cmd/root_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/root_test.go b/cmd/root_test.go index 8045c3cd..89350ad4 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -88,3 +88,11 @@ func Test_HelpFunction(t *testing.T) { }) } } + +func Test_getAllLogglingLevels(t *testing.T) { + for lvl := range getAllLogglingLevels() { + if v, ok := loggingLevels[lvl]; ok != nil { + t.Errorf("Loging level %v not found in map", lvl) + } + } +}