tile38/pkg/core/commands_test.go
Josh Baker 7e9871bb69 Refactor project layout
Move internal and support packages to pkg directory
2018-04-19 08:43:32 -07:00

23 lines
319 B
Go

package core
import (
"fmt"
"sort"
"testing"
)
func TestCommands(t *testing.T) {
var names []string
for name := range Commands {
names = append(names, name)
}
sort.Strings(names)
for _, name := range names {
cmd := Commands[name]
if cmd.Group == "server" {
fmt.Printf("%v\n", cmd.String())
}
}
}