Skip to content

Commit

Permalink
Add simple test for logging levels
Browse files Browse the repository at this point in the history
  • Loading branch information
mateimicu committed May 2, 2020
1 parent df066c9 commit c81f13f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

0 comments on commit c81f13f

Please sign in to comment.