usage_test.go 293 B

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