(t *testing.T)
| 123 | } |
| 124 | |
| 125 | func 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 | |
| 136 | func TestClient_ReadResponse(t *testing.T) { |
| 137 | // Setup a test server |
nothing calls this directly
no test coverage detected