github.com/haagen/force@v0.19.6-0.20140911230915-22addd930b34/command_test.go (about) 1 package main 2 3 import ( 4 "github.com/bmizerany/assert" 5 "testing" 6 ) 7 8 // test that all avialable commands come with at least a name and short usage information 9 func TestUsage(t *testing.T) { 10 for _, cmd := range commands { 11 assert.NotEqual(t, cmd.Name(), "") 12 assert.NotEqual(t, cmd.Short, "") 13 } 14 }