]> Cypherpunks repositories - gostls13.git/commit
httptest: introduce TempServer, clean up tests
authorBrad Fitzpatrick <bradfitz@golang.org>
Sat, 5 Mar 2011 21:51:35 +0000 (13:51 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 5 Mar 2011 21:51:35 +0000 (13:51 -0800)
commitf88abdad0fe9ac7659eb9cc8d0b703c98665dd19
treed8b091f2a7020cebc5389d138b87ede585136864
parent5f54c807f16541ea19bb08cebcd2f77886d6d0cc
httptest: introduce TempServer, clean up tests

This also breaks fs_test into two parts
as the range tests test http's private httpRange
and I had to change the fs_test package from
"http" to "http_test" to use httptest which otherwise
has a cyclic depedency back on http.

Aside: we should start exposing the Range
stuff in the future.

R=rsc
CC=golang-dev
https://golang.org/cl/4261047
src/pkg/http/fs_test.go
src/pkg/http/httptest/Makefile
src/pkg/http/httptest/server.go [new file with mode: 0644]
src/pkg/http/range_test.go [new file with mode: 0644]
src/pkg/http/serve_test.go