Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBadParse (0.17 sec)

  1. istioctl/cmd/istioctl_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package cmd
    
    import (
    	"testing"
    
    	istioctlutil "istio.io/istio/istioctl/pkg/util"
    )
    
    func TestBadParse(t *testing.T) {
    	// unknown flags should be a command parse
    	rootCmd := GetRootCmd([]string{"--unknown-flag"})
    	fErr := rootCmd.Execute()
    
    	switch fErr.(type) {
    	case istioctlutil.CommandParseError:
    		// do nothing
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:53:25 GMT 2023
    - 1.5K bytes
    - Viewed (0)
Back to top