mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
01a34e43b3
Signed-off-by: Daniel Nephin <dnephin@docker.com>
15 lines
293 B
Go
15 lines
293 B
Go
package main
|
|
|
|
import (
|
|
"sort"
|
|
"testing"
|
|
|
|
"github.com/docker/docker/cli"
|
|
)
|
|
|
|
// Tests if the subcommands of docker are sorted
|
|
func TestDockerSubcommandsAreSorted(t *testing.T) {
|
|
if !sort.IsSorted(byName(cli.DockerCommandUsage)) {
|
|
t.Fatal("Docker subcommands are not in sorted order")
|
|
}
|
|
}
|