src/stdlib/async_filesystem.panack
Green: covered; red: known zero; amber: unavailable. Blank lines are outside the executable-start-line denominator.
1 pub import stdlib/host::{HostError} 2 pub import stdlib/package_filesystem::{FilesystemRootIdentity, FilesystemRootRead} 3 4 // Read one regular file beneath root without blocking the execution owner. 5 // Cancellation discards the result; the host read may finish afterwards. 6 pub async read_beneath( 7 root: Path, 8 relative: Path, 9 limit: Nat 10 ): Result[FilesystemRootRead, HostError] { 11 await fs_read_beneath_async(root, relative, limit) 12 } 13 14 // Validate a root and obtain the identity to compare with subsequent reads. 15 pub async root_identity(root: Path): Result[FilesystemRootIdentity, HostError] { 16 await fs_root_identity_async(root) 17 } 18
Functions
[
{
"id": "declaration/2",
"name": "read_beneath",
"line": 6,
"state": "covered",
"entries": "6"
},
{
"id": "declaration/3",
"name": "root_identity",
"line": 15,
"state": "covered",
"entries": "1"
}
]Source branch outcomes
[]
Reviewed declaration exclusions
[
{
"id": "declaration/0",
"reason": "import",
"line": 1
},
{
"id": "declaration/1",
"reason": "import",
"line": 2
}
]