()
| 1011 | |
| 1012 | |
| 1013 | def test_apply_meta(): |
| 1014 | text = Text("foobar") |
| 1015 | text.apply_meta({"foo": "bar"}, 1, 3) |
| 1016 | |
| 1017 | console = Console() |
| 1018 | assert text.get_style_at_offset(console, 0).meta == {} |
| 1019 | assert text.get_style_at_offset(console, 1).meta == {"foo": "bar"} |
| 1020 | assert text.get_style_at_offset(console, 2).meta == {"foo": "bar"} |
| 1021 | assert text.get_style_at_offset(console, 3).meta == {} |
| 1022 | |
| 1023 | |
| 1024 | def test_on(): |
nothing calls this directly
no test coverage detected