Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(235)

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: Created 13 years, 4 months ago
Right Patch Set: diff -r a08ea6d0b200 https://go.googlecode.com/hg/ Created 13 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/gofix/htmlerr.go ('k') | src/pkg/compress/bzip2/bit_reader.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b