(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestClient_Option(t *testing.T) { |
| 67 | t.Parallel() |
| 68 | client := NewClient(opentracing.NoopTracer{}, []Option{ |
| 69 | WithResponseLogThreshold(0), |
| 70 | WithRequestLogThreshold(0), |
| 71 | }...) |
| 72 | assert.Zero(t, client.requestLogThreshold) |
| 73 | assert.Zero(t, client.responseLogThreshold) |
| 74 | req, _ := http.NewRequest(http.MethodGet, "https://example.com/", nil) |
| 75 | resp, _ := client.Do(req) |
| 76 | defer resp.Body.Close() |
| 77 | } |
| 78 | |
| 79 | func TestClient_race(t *testing.T) { |
| 80 | // the mock tracer is not concurrent safe. |
nothing calls this directly
no test coverage detected