src/stdlib/path.panack
Green: covered; red: known zero; amber: unavailable. Blank lines are outside the executable-start-line denominator.
1 pub import stdlib/core::{PathError, PathError.EmptyPath, PathError.PathContainsNul, PathError.PathNotUtf8, PathError.AbsolutePathAppend} 2 3 // Opaque Path values preserve native POSIX bytes and do not access the host. 4 pub pure from_text(value: Str): Result[Path, PathError] { path_from_text(value) } 5 pub pure from_native(value: Bytes): Result[Path, PathError] { path_from_native(value) } 6 pub pure current(): Path { path_current() } 7
Functions
[
{
"id": "declaration/1",
"name": "from_text",
"line": 4,
"state": "covered",
"entries": "616"
},
{
"id": "declaration/2",
"name": "from_native",
"line": 5,
"state": "covered",
"entries": "4"
},
{
"id": "declaration/3",
"name": "current",
"line": 6,
"state": "covered",
"entries": "234"
}
]Source branch outcomes
[]
Reviewed declaration exclusions
[
{
"id": "declaration/0",
"reason": "import",
"line": 1
}
]