]> Cypherpunks repositories - gostls13.git/commit
net/http/httptest: table-test using named subtests
authorPierre Prinetti <pierreprinetti@gmail.com>
Sun, 17 Dec 2017 00:41:29 +0000 (01:41 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 12 May 2018 16:26:36 +0000 (16:26 +0000)
commit6876447952bfc5e532482bd1c89314f554e69fcd
tree41e6d2a34c495053d3429d9b634559d6c4b15c07
parent33b2b172014c50c42597785a60d9e98288fe737c
net/http/httptest: table-test using named subtests

Use Go 1.7 Run method of testing.T to run the table-driven tests into
separate, named subtests. The behaviour of the tests is not modified.

Change-Id: Ia88fa59a3534e79e3f0731e948b5f8a9919b339d
Reviewed-on: https://go-review.googlesource.com/84478
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/httptest/httptest_test.go
src/net/http/httptest/recorder_test.go