All files

src/stdlib/package_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 
    3 // Package loading needs a physical root identity and a confined source read.
    4 pub record FilesystemRootIdentity { device: Nat, inode: Nat }
    5 pub record FilesystemRootRead { identity: FilesystemRootIdentity, contents: Bytes }
    6 
    7 pub directories_overlap(left: Path, right: Path): Result[Bool, HostError] {
    8   fs_directories_overlap(left, right)
    9 }
   10 
   11 pub read_beneath(
   12   root: Path,
   13   relative: Path,
   14   limit: Nat
   15 ): Result[FilesystemRootRead, HostError] {
   16   fs_read_beneath(root, relative, limit)
   17 }
   18 

Functions

[
  {
    "id": "declaration/3",
    "name": "directories_overlap",
    "line": 7,
    "state": "covered",
    "entries": "7"
  },
  {
    "id": "declaration/4",
    "name": "read_beneath",
    "line": 11,
    "state": "covered",
    "entries": "6"
  }
]

Source branch outcomes

[]

Reviewed declaration exclusions

[
  {
    "id": "declaration/0",
    "reason": "import",
    "line": 1
  },
  {
    "id": "declaration/1",
    "reason": "record-declaration",
    "line": 4
  },
  {
    "id": "declaration/2",
    "reason": "record-declaration",
    "line": 5
  }
]