gofmt, govet, run those in Travis, add 1.7

This commit is contained in:
Chris Broadfoot
2016-08-20 00:09:46 -07:00
parent 1f4717172e
commit d1371ecdb4
5 changed files with 21 additions and 14 deletions

View File

@ -142,11 +142,11 @@ func TestCommandsAreSorted(t *testing.T) {
var tmpCommand = &Command{Use: "tmp"}
for _, name := range(originalNames) {
for _, name := range originalNames {
tmpCommand.AddCommand(&Command{Use: name})
}
for i, c := range(tmpCommand.Commands()) {
for i, c := range tmpCommand.Commands() {
if expectedNames[i] != c.Name() {
t.Errorf("expected: %s, got: %s", expectedNames[i], c.Name())
}
@ -162,11 +162,11 @@ func TestEnableCommandSortingIsDisabled(t *testing.T) {
var tmpCommand = &Command{Use: "tmp"}
for _, name := range(originalNames) {
for _, name := range originalNames {
tmpCommand.AddCommand(&Command{Use: name})
}
for i, c := range(tmpCommand.Commands()) {
for i, c := range tmpCommand.Commands() {
if originalNames[i] != c.Name() {
t.Errorf("expected: %s, got: %s", originalNames[i], c.Name())
}