(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestRequest_Constructors(t *testing.T) { |
| 84 | t.Run("config", func(t *testing.T) { |
| 85 | reporter := newMockReporter(t) |
| 86 | config := newMockConfig(reporter) |
| 87 | req := NewRequestC(config, "GET", "") |
| 88 | req.chain.assert(t, success) |
| 89 | }) |
| 90 | |
| 91 | t.Run("chain", func(t *testing.T) { |
| 92 | chain := newMockChain(t) |
| 93 | reporter := newMockReporter(t) |
| 94 | config := newMockConfig(reporter) |
| 95 | req := newRequest(chain, config, "GET", "") |
| 96 | assert.NotSame(t, req.chain, chain) |
| 97 | assert.Equal(t, req.chain.context.Path, chain.context.Path) |
| 98 | }) |
| 99 | } |
| 100 | |
| 101 | func TestRequest_Reentrancy(t *testing.T) { |
| 102 | t.Run("call from reporter", func(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…