A manpage with no mappings should be flagged as a warning.
(self, store, db_path)
| 73 | assert any("orphaned mapping" in msg for msg in errors_list) |
| 74 | |
| 75 | def test_unreachable_manpage(self, store, db_path): |
| 76 | """A manpage with no mappings should be flagged as a warning.""" |
| 77 | store._conn.execute("PRAGMA foreign_keys = OFF") |
| 78 | store._conn.execute( |
| 79 | "INSERT INTO parsed_manpages(source, name, options, aliases) " |
| 80 | "VALUES (?, ?, '[]', '[]')", |
| 81 | ("ubuntu/26.04/1/lonely.1.gz", "lonely"), |
| 82 | ) |
| 83 | store._conn.commit() |
| 84 | store._conn.execute("PRAGMA foreign_keys = ON") |
| 85 | issues = db_check(db_path) |
| 86 | warnings = [msg for sev, msg in issues if sev == "warning"] |
| 87 | assert any("unreachable manpage" in msg for msg in warnings) |
| 88 | |
| 89 | def test_shadowed_duplicate(self, store, db_path): |
| 90 | """Two manpages with same name+section+distro should be flagged.""" |
nothing calls this directly
no outgoing calls
no test coverage detected