Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for someNewValue (0.13 sec)

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

    	expected = []string{"abcd"}
    	got = g.split(inLine + "\n")
    
    	if !reflect.DeepEqual(got, expected) {
    		t.Errorf("split(%q): got %q expected %q", inLine, got, expected)
    	}
    
    	const val = "someNewValue"
    	os.Setenv("_Z", val)
    
    	// try again with the properly-escaped variable.
    
    	inLine = "//go:generate -command CMD2 \"ab${DOLLAR}{_Z}cd\""
    	expected = []string{"-command", "CMD2", "ab${_Z}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