test_helper library
Dependency-light in-memory implementations of every diene_interfaces seam.
This sub-library deliberately depends on NO test framework, matcher library,
mocking package, Flutter, or exporter — only on the seams themselves,
diene_result, and diene_problems. It therefore adds nothing to a
consumer's production dependency graph (family DEPENDENCY-LIGHT rule).
Every fake is stateful and deterministic, and every fallible member accepts FIFO scripted results so a consumer can exercise failure paths without a mocking framework and without exceptions.
Classes
- InMemoryLoggerSink
- An in-memory LoggerSink with FIFO fault injection.
- InMemoryMetricsCollector
- An in-memory MetricsCollector with FIFO fault injection.
- InMemorySystem
- A deterministic System with mutable in-memory process state.
- InMemoryTerminal
- A FIFO-scripted Terminal that records every command, write, and read.
- InMemoryVfs
- A stateful, byte-backed Vfs.
Functions
-
expectPortProblem(
Problem problem, {required PortName port, required PortErrorCode code, String? operation}) → Problem -
Requires
problemto be the envelope this library mints forport/code.
Exceptions / Errors
- SeamAssertionFailure
-
Thrown when a dependency-light
diene_interfacesassertion fails.