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

Issue 7314046: code review 7314046: net/http/httptest: add examples

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by kisielk
Modified:
10 years, 9 months ago
Reviewers:
bradfitz
CC:
golang-dev, adg, bradfitz
Visibility:
Public.

Description

net/http/httptest: add examples

Patch Set 1 #

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

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

Total comments: 10

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -0 lines) Patch
A src/pkg/net/http/httptest/example_test.go View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 9
kisielk
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 2 months ago (2013-02-06 05:38:24 UTC) #1
adg
Nice examples https://codereview.appspot.com/7314046/diff/4001/src/pkg/net/http/httptest/example_test.go File src/pkg/net/http/httptest/example_test.go (right): https://codereview.appspot.com/7314046/diff/4001/src/pkg/net/http/httptest/example_test.go#newcode17 src/pkg/net/http/httptest/example_test.go:17: http.Error(w, req.URL.Path+": something went horribly wrong.", http.StatusInternalServerError) ...
11 years, 2 months ago (2013-02-07 22:21:43 UTC) #2
bradfitz
https://codereview.appspot.com/7314046/diff/4001/src/pkg/net/http/httptest/example_test.go File src/pkg/net/http/httptest/example_test.go (right): https://codereview.appspot.com/7314046/diff/4001/src/pkg/net/http/httptest/example_test.go#newcode36 src/pkg/net/http/httptest/example_test.go:36: server := httptest.NewServer(http.HandlerFunc(handler)) in all the net/http tests, we ...
11 years, 2 months ago (2013-02-07 22:31:14 UTC) #3
kisielk
Thanks for the feedback, PTAL. https://codereview.appspot.com/7314046/diff/4001/src/pkg/net/http/httptest/example_test.go File src/pkg/net/http/httptest/example_test.go (right): https://codereview.appspot.com/7314046/diff/4001/src/pkg/net/http/httptest/example_test.go#newcode17 src/pkg/net/http/httptest/example_test.go:17: http.Error(w, req.URL.Path+": something went ...
11 years, 2 months ago (2013-02-08 03:09:44 UTC) #4
bradfitz
https://codereview.appspot.com/7314046/diff/4002/src/pkg/net/http/httptest/example_test.go File src/pkg/net/http/httptest/example_test.go (right): https://codereview.appspot.com/7314046/diff/4002/src/pkg/net/http/httptest/example_test.go#newcode17 src/pkg/net/http/httptest/example_test.go:17: http.Error(w, r.URL.Path+": something went horribly wrong", http.StatusInternalServerError) this is ...
11 years, 2 months ago (2013-02-08 03:51:55 UTC) #5
kisielk
Hello golang-dev@googlegroups.com, adg@golang.org, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 2 months ago (2013-02-08 04:14:08 UTC) #6
bradfitz
LGTM. I'll reorder one line before I submit. On Thu, Feb 7, 2013 at 8:14 ...
11 years, 2 months ago (2013-02-08 17:18:09 UTC) #7
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=bad13530d9b3 *** net/http/httptest: add examples R=golang-dev, adg, bradfitz CC=golang-dev https://codereview.appspot.com/7314046 Committer: Brad ...
11 years, 2 months ago (2013-02-08 17:20:55 UTC) #8
remyoudompheng
10 years, 9 months ago (2013-07-20 21:25:00 UTC) #9
R=close
Sign in to reply to this message.

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