()
| 3070 | |
| 3071 | |
| 3072 | def test_generate_component(): |
| 3073 | def index(): |
| 3074 | return rx.box("Index") |
| 3075 | |
| 3076 | def index_mismatch(): |
| 3077 | return rx.match( |
| 3078 | 1, |
| 3079 | (1, rx.box("Index")), |
| 3080 | (2, "About"), |
| 3081 | "Bar", |
| 3082 | ) |
| 3083 | |
| 3084 | comp = App._generate_component(index) |
| 3085 | assert isinstance(comp, Component) |
| 3086 | |
| 3087 | with pytest.raises(exceptions.MatchTypeError): |
| 3088 | App._generate_component(index_mismatch) |
| 3089 | |
| 3090 | |
| 3091 | def test_add_page_component_returning_tuple(): |
nothing calls this directly
no test coverage detected