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

Issue 7323044: code review 7323044: src: use internal tests if possible (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by u
Modified:
12 years, 4 months ago
Reviewers:
CC:
golang-dev, rsc, mikio, r
Visibility:
Public.

Description

src: use internal tests if possible If a test can be placed in the same package ("internal"), it is placed there. This facilitates testing of package-private details. Because of dependency cycles some packages cannot be tested by internal tests.

Patch Set 1 #

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

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

Total comments: 2

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

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

Patch Set 6 : diff -r 3836bcbafa69 https://code.google.com/p/go #

Total comments: 3

Patch Set 7 : diff -r 3836bcbafa69 https://code.google.com/p/go #

Patch Set 8 : diff -r 3836bcbafa69 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -73 lines) Patch
M src/pkg/container/heap/heap_test.go View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/crypto/md5/md5_test.go View 1 3 chunks +4 lines, -5 lines 0 comments Download
M src/pkg/crypto/sha1/sha1_test.go View 1 3 chunks +4 lines, -5 lines 0 comments Download
M src/pkg/go/build/deps_test.go View 1 2 chunks +2 lines, -3 lines 0 comments Download
M src/pkg/io/ioutil/ioutil_test.go View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/io/ioutil/tempfile_test.go View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/net/conn_test.go View 1 2 3 4 5 6 7 4 chunks +8 lines, -6 lines 0 comments Download
M src/pkg/net/http/filetransport_test.go View 1 2 chunks +4 lines, -5 lines 0 comments Download
M src/pkg/net/packetconn_test.go View 1 2 3 4 5 6 7 7 chunks +11 lines, -9 lines 0 comments Download
M src/pkg/net/protoconn_test.go View 1 2 3 4 5 6 7 18 chunks +30 lines, -28 lines 0 comments Download
M src/pkg/path/filepath/match_test.go View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/debug/garbage_test.go View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/debug/stack_test.go View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 11
u
Hello golang-dev@googlegroups.com (cc: r@golang.org), I'd like you to review this change to https://code.google.com/p/go
12 years, 4 months ago (2013-02-11 09:07:11 UTC) #1
u
On 2013/02/11 09:07:11, u wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:r@golang.org), > > I'd like you ...
12 years, 4 months ago (2013-02-11 09:12:02 UTC) #2
rsc
https://codereview.appspot.com/7323044/diff/5001/src/pkg/runtime/race/race_test.go File src/pkg/runtime/race/race_test.go (left): https://codereview.appspot.com/7323044/diff/5001/src/pkg/runtime/race/race_test.go#oldcode12 src/pkg/runtime/race/race_test.go:12: package race_test Please revert this change. The race package ...
12 years, 4 months ago (2013-02-11 12:44:59 UTC) #3
u
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com, r@golang.org), Please take another look.
12 years, 4 months ago (2013-02-11 16:05:06 UTC) #4
u
Updated to reflect changes in rev 3836bcbafa69.
12 years, 4 months ago (2013-02-16 06:20:12 UTC) #5
mikio
i'm fine with changes for net package. leave for others. please change the CL description ...
12 years, 4 months ago (2013-02-16 07:11:29 UTC) #6
u
On 2013/02/16 07:11:29, mikio wrote: > i'm fine with changes for net package. leave for ...
12 years, 4 months ago (2013-02-16 07:44:28 UTC) #7
mikio
On Sat, Feb 16, 2013 at 4:44 PM, <r.eklind.87@gmail.com> wrote: > I've updated the CL ...
12 years, 4 months ago (2013-02-16 08:21:00 UTC) #8
u
Hello golang-dev@googlegroups.com, rsc@golang.org, mikioh.mikioh@gmail.com (cc: golang-dev@googlegroups.com, r@golang.org), Please take another look.
12 years, 4 months ago (2013-02-16 08:27:21 UTC) #9
rsc
LGTM
12 years, 4 months ago (2013-02-19 14:52:12 UTC) #10
rsc
12 years, 4 months ago (2013-02-19 15:02:09 UTC) #11
*** Submitted as https://code.google.com/p/go/source/detail?r=cb5d4e9555d2 ***

src: use internal tests if possible

If a test can be placed in the same package ("internal"), it is placed
there. This facilitates testing of package-private details. Because of
dependency cycles some packages cannot be tested by internal tests.

R=golang-dev, rsc, mikioh.mikioh
CC=golang-dev, r
https://codereview.appspot.com/7323044

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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