Skip to content

Commit

Permalink
Raise codecoverage in metrics package (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Paskal <[email protected]>
  • Loading branch information
maksim-paskal authored Dec 20, 2024
1 parent ad721e4 commit d440748
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/metrics/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ func TestInstrumenter(t *testing.T) {
defer r.Body.Close()
}

func TestInstrumenterWithEmptyProxy(t *testing.T) {
t.Parallel()

instrumenter := metrics.NewInstrumenter("TestInstrumenterWithEmptyProxy").WithProxy("")

r, err := instrumenter.InstrumentedRoundTripper().RoundTrip(httptest.NewRequest(http.MethodGet, ts.URL, nil))
if err != nil {
t.Fatal(err)
}
defer r.Body.Close()
}

func TestInstrumenterProxy(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit d440748

Please sign in to comment.