github.com/robingeuze/docker@v1.11.1/docker/flags_test.go (about)

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