Apply gofmt -s

This commit is contained in:
bep 2015-03-05 23:19:10 +01:00
parent 8557e2cbb8
commit 6e1b0e0c00
7 changed files with 44 additions and 46 deletions

View file

@ -2,21 +2,19 @@ package utils
import (
"testing"
)
)
func TestCutUsageMessage(t *testing.T) {
tests := []struct{
message string
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"},
{" 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 {