Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_flag_arg (0.1 sec)

  1. src/testing/flag_test.go

    	if !ok {
    		t.Fatalf("test.v flag (type %T) does not have Get method", f)
    	}
    	v := gf.Get()
    
    	var want any
    	switch *testFlagArg {
    	case "":
    		want = false
    	case "-test.v":
    		want = true
    	case "-test.v=test2json":
    		want = "test2json"
    	default:
    		t.Fatalf("unexpected test_flag_arg %q", *testFlagArg)
    	}
    
    	if v != want {
    		t.Errorf("test.v is %v want %v", v, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top