testing library

Test-only platform hosts for NomosTestHarness.

Import from tests only. registerNomosNativeTestPeerHost() makes the Apple native host (release AOT kernel + Peer Office in JavaScriptCore) available to the harness in a macOS host flutter test; NOMOS_TEST_PEER_HOST=native selects it and NOMOS_NATIVE_HOST_LIBRARY names the kernel host binary. The Node peer stays the default.

Generated scenario code imports this library, so it must compile wherever an application does. The native host needs dart:ffi; where there is none (Flutter web), the same names resolve to a host that cannot start, and registering it does nothing, so NOMOS_TEST_PEER_HOST=native is still refused loudly by the harness.

Classes

NomosNativeTestPeerHost
The Apple native test peer host does not exist without dart:ffi. It cannot be constructed, and start refuses.

Constants

nomosNativeHostLibraryVariable → const String
Names the Apple kernel host dynamic library a native test peer loads. Kept for source compatibility; nothing reads it on a platform without dart:ffi.

Functions

registerNomosNativeTestPeerHost() → void
Without dart:ffi there is no native host to register: this does nothing, so a harness that selects NOMOS_TEST_PEER_HOST=native is refused by the harness's own unregistered-host check.