The '.' command (source) should be looked up without splitting on dot.
(self, store)
| 145 | store.find_man_page("nosuchprogram") |
| 146 | |
| 147 | def test_dot_command(self, store): |
| 148 | """The '.' command (source) should be looked up without splitting on dot.""" |
| 149 | mp = ParsedManpage( |
| 150 | source="ubuntu/26.04/1/..1.gz", |
| 151 | name=".", |
| 152 | synopsis=". - source a file", |
| 153 | aliases=[(".", 10)], |
| 154 | ) |
| 155 | store.add_manpage(mp, _make_raw()) |
| 156 | |
| 157 | results = store.find_man_page(".") |
| 158 | assert results[0].name == "." |
| 159 | |
| 160 | |
| 161 | class TestHasManpageSource: |
nothing calls this directly
no test coverage detected