mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Step 1 of the Big Error Shift: make os.Error an interface and replace *os.Errors with os.Errors.
lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586
This commit is contained in:
parent
3ea8d854a3
commit
aaf63f8d06
57 changed files with 341 additions and 339 deletions
|
|
@ -126,7 +126,7 @@ func ufmt(u *URL) string {
|
|||
u.Host, u.Path, u.Query, u.Fragment);
|
||||
}
|
||||
|
||||
func DoTest(t *testing.T, parse func(string) (*URL, *os.Error), name string, tests []URLTest) {
|
||||
func DoTest(t *testing.T, parse func(string) (*URL, os.Error), name string, tests []URLTest) {
|
||||
for i, tt := range tests {
|
||||
u, err := parse(tt.in);
|
||||
if err != nil {
|
||||
|
|
@ -150,7 +150,7 @@ func TestParseURLReference(t *testing.T) {
|
|||
DoTest(t, ParseURLReference, "ParseURLReference", urlfragtests);
|
||||
}
|
||||
|
||||
func DoTestString(t *testing.T, parse func(string) (*URL, *os.Error), name string, tests []URLTest) {
|
||||
func DoTestString(t *testing.T, parse func(string) (*URL, os.Error), name string, tests []URLTest) {
|
||||
for i, tt := range tests {
|
||||
u, err := parse(tt.in);
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue