All files

src/stdlib/state.panack

Green: covered; red: known zero; amber: unavailable. Blank lines are outside the executable-start-line denominator.

    1 // Shared cells hold immutable data. Updates receive and return a snapshot.
    2 pub create[T](initial: T): State[T] { state_create(initial) }
    3 pub read[T](cell: State[T]): T { state_read(cell) }
    4 pub update[T](cell: State[T], transform: PureFn[T,T]): T {
    5   state_update(cell, transform)
    6 }
    7 

Functions

[
  {
    "id": "declaration/0",
    "name": "create",
    "line": 2,
    "state": "covered",
    "entries": "6"
  },
  {
    "id": "declaration/1",
    "name": "read",
    "line": 3,
    "state": "covered",
    "entries": "2"
  },
  {
    "id": "declaration/2",
    "name": "update",
    "line": 4,
    "state": "covered",
    "entries": "3"
  }
]

Source branch outcomes

[]

Reviewed declaration exclusions

[]