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

Issue 5643045: code review 5643045: encoding/hex: canonicalize error type names (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by r
Modified:
12 years, 2 months ago
Reviewers:
CC:
golang-dev, bradfitz, r2
Visibility:
Public.

Description

encoding/hex: canonicalize error type names Also simplify the tests. Fixes issue 2849.

Patch Set 1 #

Patch Set 2 : diff -r f7a090be42f5 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 3 : diff -r f7a090be42f5 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r f7a090be42f5 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r f7a090be42f5 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r f7a090be42f5 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r f7a090be42f5 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r f7a090be42f5 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 9 : diff -r d57a5894a18f https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 2bd62ae5f23c https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -121 lines) Patch
M src/pkg/encoding/hex/hex.go View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -14 lines 0 comments Download
M src/pkg/encoding/hex/hex_test.go View 1 2 3 4 5 6 1 chunk +64 lines, -107 lines 0 comments Download

Messages

Total messages: 13
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 2 months ago (2012-02-07 03:48:00 UTC) #1
bradfitz
ErrLength shouldn't be a type. On Feb 6, 2012 7:48 PM, <r@golang.org> wrote: > Reviewers: ...
12 years, 2 months ago (2012-02-07 04:05:52 UTC) #2
r
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 2 months ago (2012-02-07 05:19:08 UTC) #3
bradfitz
http://codereview.appspot.com/5643045/diff/1002/src/pkg/encoding/hex/hex.go File src/pkg/encoding/hex/hex.go (right): http://codereview.appspot.com/5643045/diff/1002/src/pkg/encoding/hex/hex.go#newcode37 src/pkg/encoding/hex/hex.go:37: type ErrInvalid byte Everywhere(?) else in the standard library, ...
12 years, 2 months ago (2012-02-07 05:33:30 UTC) #4
r
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 2 months ago (2012-02-07 05:53:04 UTC) #5
r2
i need coffee. -rob
12 years, 2 months ago (2012-02-07 05:53:13 UTC) #6
r2
hold on. this error thing is bogus. (not my fault!) let me fix and test ...
12 years, 2 months ago (2012-02-07 05:55:02 UTC) #7
bradfitz
InvalidByteError with /or$/ Holding, per your last email. But wheels up shortly here. On Feb ...
12 years, 2 months ago (2012-02-07 05:57:29 UTC) #8
r
Hello golang-dev@googlegroups.com, bradfitz@golang.org, r@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 2 months ago (2012-02-07 06:23:14 UTC) #9
bradfitz
http://codereview.appspot.com/5643045/diff/1006/src/pkg/encoding/hex/hex.go File src/pkg/encoding/hex/hex.go (right): http://codereview.appspot.com/5643045/diff/1006/src/pkg/encoding/hex/hex.go#newcode48 src/pkg/encoding/hex/hex.go:48: // If Decode encounters invalid input, it returns an ...
12 years, 2 months ago (2012-02-08 00:07:47 UTC) #10
r
Hello golang-dev@googlegroups.com, bradfitz@golang.org, r@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 2 months ago (2012-02-08 00:14:43 UTC) #11
bradfitz
LGTM On Tue, Feb 7, 2012 at 4:14 PM, <r@golang.org> wrote: > Hello golang-dev@googlegroups.com, bradfitz@golang.org, ...
12 years, 2 months ago (2012-02-08 00:50:34 UTC) #12
r
12 years, 2 months ago (2012-02-08 00:53:39 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=320932bfe991 ***

encoding/hex: canonicalize error type names
Also simplify the tests.

Fixes issue 2849.

R=golang-dev, bradfitz, r
CC=golang-dev
http://codereview.appspot.com/5643045
Sign in to reply to this message.

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