(tctx)
| 270 | |
| 271 | |
| 272 | def test_layer_stack(tctx): |
| 273 | stack = tunnel.LayerStack() |
| 274 | a = TChildLayer(tctx) |
| 275 | b = TChildLayer(tctx) |
| 276 | stack /= a |
| 277 | stack /= b |
| 278 | assert stack[0] == a |
| 279 | assert a.child_layer is b |
| 280 | |
| 281 | stack2 = tunnel.LayerStack() |
| 282 | stack2 /= TChildLayer(tctx) |
| 283 | stack2 /= stack |
| 284 | assert stack2[0].child_layer is a # type: ignore |
nothing calls this directly
no test coverage detected
searching dependent graphs…