Files
docker-cli/components/engine/docker/flags_test.go
Ankush Agarwal 508816d55a Add test to check if subcommands are sorted
Signed-off-by: Ankush Agarwal <ankushagarwal11@gmail.com>
Upstream-commit: 4d212f7853912a2826e1cc725d831515553fde9c
Component: engine
2015-08-07 01:34:21 -07:00

14 lines
252 B
Go

package main
import (
"sort"
"testing"
)
// Tests if the subcommands of docker are sorted
func TestDockerSubcommandsAreSorted(t *testing.T) {
if !sort.IsSorted(byName(dockerCommands)) {
t.Fatal("Docker subcommands are not in sorted order")
}
}