MCPcopy Create free account
hub / github.com/BryanMwangi/pine / TestRequest_SetMethod

Function TestRequest_SetMethod

client_test.go:82–91  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

80}
81
82func TestRequest_SetMethod(t *testing.T) {
83 client := NewClient()
84 req := client.Request()
85 method := "GET"
86
87 req.SetMethod(method)
88 if req.method != method {
89 t.Fatalf("expected method to be %s, got %s", method, req.method)
90 }
91}
92
93func TestClient_SendRequest(t *testing.T) {
94 // Setup a test server

Callers

nothing calls this directly

Calls 3

RequestMethod · 0.95
NewClientFunction · 0.85
SetMethodMethod · 0.80

Tested by

no test coverage detected