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

Function TestClient_SendRequest_MissingMethod

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

Source from the content-addressed store, hash-verified

123}
124
125func TestClient_SendRequest_MissingMethod(t *testing.T) {
126 client := NewClient()
127 req := client.Request()
128 req.SetRequestURI("https://example.com")
129
130 err := client.SendRequest()
131 if !errors.Is(err, ErrMethodRequired) {
132 t.Fatalf("expected ErrMethodRequired, got %v", err)
133 }
134}
135
136func TestClient_ReadResponse(t *testing.T) {
137 // Setup a test server

Callers

nothing calls this directly

Calls 4

RequestMethod · 0.95
SendRequestMethod · 0.95
NewClientFunction · 0.85
SetRequestURIMethod · 0.80

Tested by

no test coverage detected