test: replace the Go compatibility fixtures with native round-trip tests

The Go-generated link.db, profiles.link and rec1.cast fixtures and the
tests that read them are removed. Their coverage is kept by tests on
data this build writes: a fresh database round-trips SSH profiles (env
vars, login scripts, forwards), serial profiles, IRC room state, known
hosts, snippets and preferences, and encrypted exports round-trip and
reject a wrong password. The import dialog no longer offers .link files
and the docs stop mentioning them.
This commit is contained in:
Andy Dixon
2026-10-12 10:10:08 +01:00
parent 9ebfe57301
commit 4bd12bfb03
13 changed files with 69 additions and 74 deletions
-15
View File
@@ -380,21 +380,6 @@ mod tests {
d
}
#[test]
fn reads_go_fixture() {
let store = Store::new(PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/recordings"));
let (hdr, events) = store.get("rec1").unwrap();
assert_eq!((hdr.version, hdr.width, hdr.height, hdr.timestamp), (2, 80, 24, 1791633486));
assert_eq!(hdr.title, "Fixture — host");
assert_eq!(hdr.env["TERM"], "xterm-256color");
assert_eq!(events.len(), 2);
assert_eq!((events[0].kind.as_str(), events[0].data.as_str()), ("o", "hello \x1b[1mworld\x1b[0m\r\n"));
assert_eq!((events[1].kind.as_str(), events[1].data.as_str()), ("i", "ls\r"));
let metas = store.list().unwrap();
assert_eq!(metas.len(), 1);
assert_eq!(metas[0].duration, 0.000212149);
}
#[test]
fn write_and_close() {
let dir = tmp("write");