(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestRequest_SetHeaders(t *testing.T) { |
| 60 | client := NewClient() |
| 61 | req := client.Request() |
| 62 | |
| 63 | headers := map[string]string{"X-Custom-Header": "value"} |
| 64 | req.SetHeaders(headers) |
| 65 | |
| 66 | if req.Header.Get("X-Custom-Header") != "value" { |
| 67 | t.Fatalf("expected header X-Custom-Header to be 'value', got %s", req.Header.Get("X-Custom-Header")) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func TestRequest_SetRequestURI(t *testing.T) { |
| 72 | client := NewClient() |
nothing calls this directly
no test coverage detected