All files

src/stdlib/async_host.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 pub async arguments(): [Str] { await host_arguments_async() }
    4 
    5 // Write the message bytes and one newline, with a 16 KiB message limit.
    6 // Cancellation cannot retract bytes already written.
    7 pub async stdout(message: Str): Result[Unit,HostError] {
    8   await host_stdout_async(message)
    9 }
   10 
   11 pub async stderr(message: Str): Result[Unit,HostError] {
   12   await host_stderr_async(message)
   13 }
   14 
   15 pub async exit(status: Nat): Unit { await host_exit_async(status) }
   16 

Functions

[
  {
    "id": "declaration/1",
    "name": "arguments",
    "line": 3,
    "state": "covered",
    "entries": "11"
  },
  {
    "id": "declaration/2",
    "name": "stdout",
    "line": 7,
    "state": "covered",
    "entries": "5"
  },
  {
    "id": "declaration/3",
    "name": "stderr",
    "line": 11,
    "state": "zero",
    "entries": "0"
  },
  {
    "id": "declaration/4",
    "name": "exit",
    "line": 15,
    "state": "zero",
    "entries": "0"
  }
]

Source branch outcomes

[]

Reviewed declaration exclusions

[
  {
    "id": "declaration/0",
    "reason": "import",
    "line": 1
  }
]