- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for TestResponse (0.24 sec)
-
internal/grid/grid_types_test.go
type testRequest struct { Num int String string } type testResponse struct { OrgNum int OrgString string Embedded testRequest } func newTestRequest() *testRequest { return &testRequest{} } func newTestResponse() *testResponse { return &testResponse{}
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 1.1K bytes - Viewed (0) -
pkg/registry/core/componentstatus/rest_test.go
err error } func (f *fakeHttpProber) Probe(*http.Request, time.Duration) (probe.Result, string, error) { return f.result, f.body, f.err } type testResponse struct { result probe.Result data string err error } func NewTestREST(resp testResponse) *REST { prober := &fakeHttpProber{ result: resp.result, body: resp.data, err: resp.err, } return &REST{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 13 08:10:29 UTC 2023 - 5.3K bytes - Viewed (0) -
pkg/test/util/structpath/instance_test.go
"istio.io/istio/pkg/test/util/structpath" ) func TestContainSubstring(t *testing.T) { testResponse := &discovery.DiscoveryResponse{ VersionInfo: "2019-07-16T10:54:41-07:00/1", TypeUrl: "some.Random.Type.URL", } validator := structpath.ForProto(testResponse) tests := []struct { name string substrs []string err bool }{ { name: "Substring exist",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 11 16:19:15 UTC 2021 - 1.7K bytes - Viewed (0) -
internal/grid/grid_types_msgp_test.go
func (z testRequest) Msgsize() (s int) { s = 1 + 4 + msgp.IntSize + 7 + msgp.StringPrefixSize + len(z.String) return } // DecodeMsg implements msgp.Decodable func (z *testResponse) DecodeMsg(dc *msgp.Reader) (err error) { var field []byte _ = field var zb0001 uint32 zb0001, err = dc.ReadMapHeader() if err != nil { err = msgp.WrapError(err) return }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 8.1K bytes - Viewed (0) -
internal/grid/grid_test.go
// 1: Echo h1 := NewSingleHandler[*testRequest, *testResponse](handlerTest, func() *testRequest { return &testRequest{} }, func() *testResponse { return &testResponse{} }) // Handles incoming requests, returns a response handler1 := func(req *testRequest) (resp *testResponse, err *RemoteErr) { resp = h1.NewResponse() *resp = testResponse{ OrgNum: req.Num, OrgString: req.String,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 36.4K bytes - Viewed (0) -
internal/grid/benchmark_test.go
defer PutByteBuffer(payload) return append(GetByteBuffer()[:0], payload...), nil })) errFatal(rpc.Register(remote, func(req *testRequest) (resp *testResponse, err *RemoteErr) { return &testResponse{ OrgNum: req.Num, OrgString: req.String, Embedded: *req, }, nil })) errFatal(err) } const payloadSize = 512
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 15.7K bytes - Viewed (0) -
src/net/http/cgi/child_test.go
if err != nil { t.Fatalf("RequestFromMap: %v", err) } if e, g := "5.6.7.8:0", req.RemoteAddr; e != g { t.Errorf("RemoteAddr: got %q; want %q", g, e) } } func TestResponse(t *testing.T) { var tests = []struct { name string body string wantCT string }{ { name: "no body", wantCT: "text/plain; charset=utf-8", }, { name: "html",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 14 15:42:03 UTC 2020 - 5.2K bytes - Viewed (0) -
src/net/http/transport_test.go
return nil }, } go send100Response(cw, sr) return conn, nil }, DisableKeepAlives: false, } defer tr.CloseIdleConnections() c := &Client{Transport: tr} testResponse := func(req *Request, name string, wantCode int) { t.Helper() res, err := c.Do(req) if err != nil { t.Fatalf("%s: Do: %v", name, err) } if res.StatusCode != wantCode {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 192.6K bytes - Viewed (0)