(t *testing.T)
| 126 | } |
| 127 | |
| 128 | func TestResponse_Alias(t *testing.T) { |
| 129 | reporter := newMockReporter(t) |
| 130 | |
| 131 | value := NewResponse(reporter, &http.Response{}, time.Second) |
| 132 | assert.Equal(t, []string{"Response()"}, value.chain.context.Path) |
| 133 | assert.Equal(t, []string{"Response()"}, value.chain.context.AliasedPath) |
| 134 | |
| 135 | value.Alias("foo") |
| 136 | assert.Equal(t, []string{"Response()"}, value.chain.context.Path) |
| 137 | assert.Equal(t, []string{"foo"}, value.chain.context.AliasedPath) |
| 138 | } |
| 139 | |
| 140 | func TestResponse_RoundTripTime(t *testing.T) { |
| 141 | t.Run("provided", func(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…