diff options
Diffstat (limited to 'utils/utils_test.go')
-rw-r--r-- | utils/utils_test.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/utils/utils_test.go b/utils/utils_test.go deleted file mode 100644 index 4ec2a4eec..000000000 --- a/utils/utils_test.go +++ /dev/null @@ -1,26 +0,0 @@ -package utils - -import ( - "testing" -) - -func TestCutUsageMessage(t *testing.T) { - tests := []struct { - message string - cutMessage string - }{ - {"", ""}, - {" Usage of hugo: \n -b, --baseURL=...", ""}, - {"Some error Usage of hugo: \n", "Some error"}, - {"Usage of hugo: \n -b --baseU", ""}, - {"CRITICAL error for usage of hugo ", "CRITICAL error for usage of hugo"}, - {"Invalid short flag a in -abcde", "Invalid short flag a in -abcde"}, - } - - for _, test := range tests { - message := cutUsageMessage(test.message) - if message != test.cutMessage { - t.Errorf("Expected %#v, got %#v", test.cutMessage, message) - } - } -} |