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

Function TestClient_SendRequest_MissingURI

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

Source from the content-addressed store, hash-verified

112}
113
114func TestClient_SendRequest_MissingURI(t *testing.T) {
115 client := NewClient()
116 req := client.Request()
117 req.SetMethod("GET")
118
119 err := client.SendRequest()
120 if !errors.Is(err, ErrURIRequired) {
121 t.Fatalf("expected ErrURIRequired, got %v", err)
122 }
123}
124
125func TestClient_SendRequest_MissingMethod(t *testing.T) {
126 client := NewClient()

Callers

nothing calls this directly

Calls 4

RequestMethod · 0.95
SendRequestMethod · 0.95
NewClientFunction · 0.85
SetMethodMethod · 0.80

Tested by

no test coverage detected