net/http/httptest — validation proof

Go’s own net/http/httptest test suite, converted to C# by go2cs, built against the converted standard library, run under the Go-semantics test host, and compared verdict for verdict against a clean go test -json baseline of the same sources. This page is generated by the converter from that comparison — it is the evidence behind the net/http/httptest row in Validated Test Packages.

Validated 2026-08-25 · converter bb104d8d4

55 matched · 0 disclosed — Go 1.23.12, windows/amd64, converted package src/core/net/http/httptest.

Verdicts

Test go test go2cs
TestCloseHijackedConnection pass pass
TestNewRequest pass pass
TestNewRequestWithContext pass pass
TestNewRequestWithContext/Empty_method_means_GET pass pass
TestNewRequestWithContext/GET_with_full_URL pass pass
TestNewRequestWithContext/GET_with_full_https_URL pass pass
TestNewRequestWithContext/OPTIONS_* pass pass
TestNewRequestWithContext/Post_with_known_length pass pass
TestNewRequestWithContext/Post_with_unknown_length pass pass
TestParseContentLength pass pass
TestRecorder pass pass
TestRecorder/200_default pass pass
TestRecorder/Content-Type_detection pass pass
TestRecorder/Content-Type_detection_doesn't_crash_if_HeaderMap_is_nil pass pass
TestRecorder/HeaderMap_vs_FinalHeaders pass pass
TestRecorder/Header_is_not_changed_after_write pass pass
TestRecorder/Header_set_without_any_write pass pass
TestRecorder/Trailer_headers_are_correctly_recorded pass pass
TestRecorder/first_code_only pass pass
TestRecorder/flush pass pass
TestRecorder/nil_ResponseRecorder.Body pass pass
TestRecorder/no_Content-Type_detection_if_set_explicitly pass pass
TestRecorder/no_Content-Type_detection_with_Transfer-Encoding pass pass
TestRecorder/setting_Content-Length_header pass pass
TestRecorder/write_sends_200 pass pass
TestRecorder/write_string pass pass
TestRecorderPanicsOnNonXXXStatusCode pass pass
TestRecorderPanicsOnNonXXXStatusCode/Code=-100 pass pass
TestRecorderPanicsOnNonXXXStatusCode/Code=0 pass pass
TestRecorderPanicsOnNonXXXStatusCode/Code=1000 pass pass
TestRecorderPanicsOnNonXXXStatusCode/Code=20000 pass pass
TestRecorderPanicsOnNonXXXStatusCode/Code=99 pass pass
TestServer pass pass
TestServer/NewServer pass pass
TestServer/NewServer/GetAfterClose pass pass
TestServer/NewServer/Server pass pass
TestServer/NewServer/ServerClientTransportType pass pass
TestServer/NewServer/ServerCloseBlocking pass pass
TestServer/NewServer/ServerCloseClientConnections pass pass
TestServer/NewServerManual pass pass
TestServer/NewServerManual/GetAfterClose pass pass
TestServer/NewServerManual/Server pass pass
TestServer/NewServerManual/ServerClientTransportType pass pass
TestServer/NewServerManual/ServerCloseBlocking pass pass
TestServer/NewServerManual/ServerCloseClientConnections pass pass
TestServer/NewTLSServer pass pass
TestServer/NewTLSServer/ServerClient pass pass
TestServer/NewTLSServer/TLSServerClientTransportType pass pass
TestServer/NewTLSServerManual pass pass
TestServer/NewTLSServerManual/ServerClient pass pass
TestServer/NewTLSServerManual/TLSServerClientTransportType pass pass
TestServerZeroValueClose pass pass
TestTLSServerWithHTTP2 pass pass
TestTLSServerWithHTTP2/http1 pass pass
TestTLSServerWithHTTP2/http2 pass pass

Excluded declarations

Declarations filtered from both sides of the comparison, and therefore not claimed above: Benchmark, Fuzz and Example declarations the converted host does not execute, plus any test requiring a capability the managed runtime does not provide — a testing member the host has not implemented, or a platform behavior it provably cannot reproduce. Each is named with the capability it needs.