flags_test.go 252 B

12345678910111213
  1. package main
  2. import (
  3. "sort"
  4. "testing"
  5. )
  6. // Tests if the subcommands of docker are sorted
  7. func TestDockerSubcommandsAreSorted(t *testing.T) {
  8. if !sort.IsSorted(byName(dockerCommands)) {
  9. t.Fatal("Docker subcommands are not in sorted order")
  10. }
  11. }