(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestEffectiveStreamMockWindow_327(t *testing.T) { |
| 87 | reqTs := time.Date(2026, 2, 20, 9, 31, 7, 83000000, time.UTC) |
| 88 | respTs := reqTs.Add(3255 * time.Microsecond) |
| 89 | tc := &models.TestCase{ |
| 90 | Kind: models.HTTP, |
| 91 | HTTPReq: models.HTTPReq{ |
| 92 | Timestamp: reqTs, |
| 93 | }, |
| 94 | HTTPResp: models.HTTPResp{ |
| 95 | Timestamp: respTs, |
| 96 | }, |
| 97 | } |
| 98 | |
| 99 | after, before := effectiveStreamMockWindow(tc, 5) |
| 100 | assert.Equal(t, reqTs, after) |
| 101 | assert.Equal(t, respTs.Add(11*time.Second), before) |
| 102 | |
| 103 | after, before = effectiveStreamMockWindow(tc, 30) |
| 104 | assert.Equal(t, reqTs, after) |
| 105 | assert.Equal(t, respTs.Add(30*time.Second), before) |
| 106 | } |
| 107 | |
| 108 | func TestIsMockSubsetWithConfig(t *testing.T) { |
| 109 | tests := []struct { |
nothing calls this directly
no test coverage detected