Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBuildParser (0.12 sec)

  1. src/cmd/dist/buildtag_test.go

    	{"(gc", false, fmt.Errorf("parsing //go:build line: missing )")},
    	{"gc gc", false, fmt.Errorf("parsing //go:build line: unexpected tag")},
    	{"(gc))", false, fmt.Errorf("parsing //go:build line: unexpected )")},
    }
    
    func TestBuildParser(t *testing.T) {
    	for _, tt := range buildParserTests {
    		matched, err := matchexpr(tt.x)
    		if matched != tt.matched || !reflect.DeepEqual(err, tt.err) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 25 00:02:52 UTC 2021
    - 1.2K bytes
    - Viewed (0)
Back to top