Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-anyfs-posix-governance FR-006
The operations of the view, by how they are carried out: a closed list whose members are the operations with the cases that carry them out differently (a file is renamed one way, a file over another file a second way and a directory a third). Each has one sentence, and the logical layer gives each its plan.
import { OP_SUMMARY, isPlanOp } from "./ops.ts" ;
isPlanOp ("rename-over" ); // true
OP_SUMMARY ["rm-r" ]; // "remove a directory and everything below it" Source: commons/anyfs-posix/src/governance/ops.ts
4 of 8 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.
governance.PLAN_OPSconst no test imports it const PLAN_OPS : readonly ["stat-file" , "stat-dir" , "readdir" , "mkdir" , "rmdir" , "unlink" , "rename-file" , "rename-over" , "rename-dir" , "read-all" , "read-range" , "write-all" , "open-write" , "write" , "fsync" , "close" , "truncate" , "append" , "touch" , "rm-r" , "chmod" , "chown" , "utimes" , "symlink" , "link" , "readlink" , "mmap" ]The operations, in the order a program meets them.
governance.PlanOptype no test imports it type PlanOp = (typeof PLAN_OPS )[number ];governance.OP_SUMMARYconst no test imports it const OP_SUMMARY : Readonly <Record <"append" | "chmod" | "chown" | "close" | "fsync" | "link" | "mkdir" | "mmap" | "open-write" | "read-all" | "read-range" | "readdir" | "readlink" | "rename-dir" | "rename-file" | "rename-over" | "rm-r" | "rmdir" | "stat-dir" | "stat-file" | "symlink" | "touch" | "truncate" | "unlink" | "utimes" | "write" | "write-all" , string >>What each operation does, in a sentence.
governance.isPlanOpfunction no test imports it function isPlanOp (text : string ): text is "append" | "chmod" | "chown" | "close" | "fsync" | "link" | "mkdir" | "mmap" | "open-write" | "read-all" | "read-range" | "readdir" | "readlink" | "rename-dir" | "rename-file" | "rename-over" | "rm-r" | "rmdir" | "stat-dir" | "stat-file" | "symlink" | "touch" | "truncate" | "unlink" | "utimes" | "write" | "write-all" Whether a text is the name of an operation.
const PLAN_OPS : readonly ["stat-file" , "stat-dir" , "readdir" , "mkdir" , "rmdir" , "unlink" , "rename-file" , "rename-over" , "rename-dir" , "read-all" , "read-range" , "write-all" , "open-write" , "write" , "fsync" , "close" , "truncate" , "append" , "touch" , "rm-r" , "chmod" , "chown" , "utimes" , "symlink" , "link" , "readlink" , "mmap" ]The operations, in the order a program meets them.
Imported by 15 tests of the run (15 passed, 0 failed): the library's results
type PlanOp = (typeof PLAN_OPS )[number ];One operation.
Imported by 7 tests of the run (7 passed, 0 failed): the library's results
const OP_SUMMARY : Readonly <Record <"append" | "chmod" | "chown" | "close" | "fsync" | "link" | "mkdir" | "mmap" | "open-write" | "read-all" | "read-range" | "readdir" | "readlink" | "rename-dir" | "rename-file" | "rename-over" | "rm-r" | "rmdir" | "stat-dir" | "stat-file" | "symlink" | "touch" | "truncate" | "unlink" | "utimes" | "write" | "write-all" , string >>What each operation does, in a sentence.
Imported by 8 tests of the run (8 passed, 0 failed): the library's results
function isPlanOp (text : string ): text is "append" | "chmod" | "chown" | "close" | "fsync" | "link" | "mkdir" | "mmap" | "open-write" | "read-all" | "read-range" | "readdir" | "readlink" | "rename-dir" | "rename-file" | "rename-over" | "rm-r" | "rmdir" | "stat-dir" | "stat-file" | "symlink" | "touch" | "truncate" | "unlink" | "utimes" | "write" | "write-all" Whether a text is the name of an operation.
Imported by 8 tests of the run (8 passed, 0 failed): the library's results