Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CMD0 (0.04 sec)

  1. src/cmd/go/internal/generate/generate_test.go

    	inLine = "//go:generate -command CMD0 \"ab${_X}cd\""
    	expected = []string{"-command", "CMD0", "abYcd"}
    	got = g.split(inLine + "\n")
    
    	if !reflect.DeepEqual(got, expected) {
    		t.Errorf("split(%q): got %q expected %q", inLine, got, expected)
    	}
    
    	// try again, with an extra level of indirection (should leave variable in command)
    	inLine = "//go:generate -command CMD0 \"ab${DOLLAR}{_X}cd\""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 20 14:09:12 UTC 2022
    - 7.4K bytes
    - Viewed (0)
Back to top