()
| 130 | |
| 131 | |
| 132 | def test_var_binding() -> None: |
| 133 | v0 = rx.Var("v0") |
| 134 | val = rx.const(np.random.rand(24, 56)) |
| 135 | b0 = rx.VarBinding(v0, val) |
| 136 | b0_str = dump_ast(b0, include_struct_info_annotations=False) |
| 137 | assert b0_str.startswith("VarBinding(") |
| 138 | assert 'var=Var(name_hint="v0")' in b0_str |
| 139 | assert "value=" in b0_str |
| 140 | assert "Constant(" in b0_str |
| 141 | |
| 142 | |
| 143 | def test_binding_block() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…