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

Issue 7808045: code review 7808045: image/gif: make test repeatable (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by dfc
Modified:
11 years ago
Reviewers:
CC:
minux1, bradfitz, nigeltao, golang-dev
Visibility:
Public.

Description

image/gif: make test repeatable Fixes issue with go test -cpu=1,1

Patch Set 1 #

Patch Set 2 : diff -r d448734315d3 https://code.google.com/p/go #

Total comments: 2

Patch Set 3 : diff -r d448734315d3 https://code.google.com/p/go #

Patch Set 4 : diff -r d448734315d3 https://code.google.com/p/go #

Total comments: 1

Patch Set 5 : diff -r 19eb878576c6 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -7 lines) Patch
M src/pkg/image/gif/reader_test.go View 1 2 3 4 1 chunk +10 lines, -7 lines 0 comments Download

Messages

Total messages: 6
minux1
https://codereview.appspot.com/7808045/diff/2001/src/pkg/image/gif/reader_test.go File src/pkg/image/gif/reader_test.go (right): https://codereview.appspot.com/7808045/diff/2001/src/pkg/image/gif/reader_test.go#newcode119 src/pkg/image/gif/reader_test.go:119: copy(gif, testGIF) is using append([]byte(nil), testGIF...) more idiomatic here?
11 years ago (2013-03-25 09:34:04 UTC) #1
dfc
Hello minux.ma@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years ago (2013-03-25 09:55:34 UTC) #2
bradfitz
LGTM On Mon, Mar 25, 2013 at 2:55 AM, <dave@cheney.net> wrote: > Reviewers: minux, > ...
11 years ago (2013-03-25 15:39:28 UTC) #3
nigeltao
LGTM. https://codereview.appspot.com/7808045/diff/9001/src/pkg/image/gif/reader_test.go File src/pkg/image/gif/reader_test.go (right): https://codereview.appspot.com/7808045/diff/9001/src/pkg/image/gif/reader_test.go#newcode117 src/pkg/image/gif/reader_test.go:117: // make a local copy of testGif // ...
11 years ago (2013-03-26 01:23:19 UTC) #4
dfc
Thanks Nigel, I will address that comment before I submit. On 26/03/2013, at 12:23, nigeltao@golang.org ...
11 years ago (2013-03-26 03:17:10 UTC) #5
dfc
11 years ago (2013-03-26 05:20:29 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=f3b1ca87b5c4 ***

image/gif: make test repeatable

Fixes issue with go test -cpu=1,1

R=minux.ma, bradfitz, nigeltao
CC=golang-dev
https://codereview.appspot.com/7808045

https://codereview.appspot.com/7808045/diff/2001/src/pkg/image/gif/reader_tes...
File src/pkg/image/gif/reader_test.go (right):

https://codereview.appspot.com/7808045/diff/2001/src/pkg/image/gif/reader_tes...
src/pkg/image/gif/reader_test.go:119: copy(gif, testGIF)
On 2013/03/25 09:34:04, minux wrote:
> is using append([]byte(nil), testGIF...) more idiomatic here?

My personal feeling is it is not, I dislike using this append side effect. I am
happy to be overruled on this matter.
Sign in to reply to this message.

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