Files
furumi-ng/furumi-mount-linux/src/tests.rs

11 lines
587 B
Rust
Raw Normal View History

2026-03-10 16:52:13 +00:00
use crate::fs::FurumiFuse;
use furumi_client_core::FurumiClient;
// We need a helper to create a dummy client since FurumiFuse requires one.
// The easiest way is to connect to a non-existent port with HTTP, which fails fast,
// but for FurumiFuse::new, it just needs the struct, not an active connection yet.
// Wait, `connect` returns a Result. Since we don't mock the gRPC server here,
// testing FurumiFuse without a real client is hard because FurumiFuse has `client: FurumiClient`.
// Instead, we can refactor the Inode mapper into a separate struct to make it easily testable.