Idris2Doc : Evince.Async.Shared

Evince.Async.Shared

(source)

Definitions

0AbortRef : Type
  The fail-fast abort flag threaded through the runner - a base `Data.IORef`
cell (not the `IORef` that IO.Async re-exports from Data.Linear.Ref1).

Visibility: public export
evalAsyncForest : Reporter (Asynce []) ->Lock (Asynce []) ->RunConfig->AbortRef->List (SpecTree (Asynce []) ()) ->Asynce [] EvalResult
  Evaluate the top-level groups, running up to `cfg.jobs` of them
concurrently. `jobs = 0` falls back to core's sequential walk; otherwise a
pool of `jobs` workers claims groups from a shared queue as slots free up
(sliding window - a slow group never stalls the ones after it). Under
`--fail-fast` the first failure also cancels the in-flight groups: their
partial output is flushed, their completed tests keep their results, and a
`SuiteAborted` event notes that the run was cut short. A concurrent group's
events are buffered and replayed under the lock when the group finishes, so
groups' output never interleaves.

Visibility: export
runResultVia : (Asynce [] () ->IO ()) ->RunConfig->Spec (Asynce []) () () ->IOEvalResult
  Run a spec on a caller-supplied event loop and return the full result.
The `runLoop` argument is the backend's `Async` runner (`syncApp` for the
SyncST loop, `app` for the JS loop). Dies if the loop terminates before
the suite completes, rather than reporting an empty successful run.

Visibility: export
runSpecVia : (Asynce [] () ->IO ()) ->RunConfig->Spec (Asynce []) () () ->IO ()
  Run a spec on the given event loop, writing the failure list for `--rerun`
and exiting non-zero if any test failed.

Visibility: export
summaryVia : (Asynce [] () ->IO ()) ->RunConfig->Spec (Asynce []) () () ->IOSummary
  Run a spec on the given event loop and return the summary without exiting.

Visibility: export
runSpecArgsVia : (Asynce [] () ->IO ()) ->Spec (Asynce []) () () ->IO ()
  Run a spec on the given event loop, reading CLI args (including `--jobs`)
for configuration.

Visibility: export
runSpecFailFastVia : (Asynce [] () ->IO ()) ->Spec (Asynce []) () () ->IO ()
  Run a spec on the given event loop with fail-fast enabled.

Visibility: export
runSpecTimedVia : (Asynce [] () ->IO ()) ->Spec (Asynce []) () () ->IO ()
  Run a spec on the given event loop with per-test timing displayed.

Visibility: export