11 lines
587 B
Rust
11 lines
587 B
Rust
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.
|
|
|