Delta Between Two Patch Sets: src/cmd/gofix/htmlerr_test.go
Issue 5327064 :
code review 5327064: html,bzip2,sql: rename Error methods that return error ... (Closed)
Left Patch Set:
Right Patch Set: diff -r a08ea6d0b200 https://go.googlecode.com/hg/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/cmd/gofix/Makefile
src/cmd/gofix/fix.go
src/cmd/gofix/htmlerr.go
src/cmd/gofix/htmlerr_test.go
src/pkg/compress/bzip2/bit_reader.go
src/pkg/compress/bzip2/bzip2.go
src/pkg/exp/sql/sql.go
src/pkg/html/parse.go
src/pkg/html/token.go
src/pkg/html/token_test.go
LEFT RIGHT
(no file at all) 1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package main
6
7 func init() {
8 addTestCases(htmlerrTests, htmlerr)
9 }
10
11 var htmlerrTests = []testCase{
12 {
13 Name: "htmlerr.0",
14 In: `package main
15
16 import (
17 "html"
18 )
19
20 func f() {
21 e := errors.New("")
22 t := html.NewTokenizer(r)
23 _, _ = e.Error(), t.Error()
24 }
25 `,
26 Out: `package main
27
28 import (
29 "html"
30 )
31
32 func f() {
33 e := errors.New("")
34 t := html.NewTokenizer(r)
35 _, _ = e.Error(), t.Err()
36 }
37 `,
38 },
39 }
LEFT RIGHT