clientFactoryForTesting property
Test seam: overrides how an adapter builds the client it owns.
The default builds a real nh.NitroHttpClient, whose executor binds to
the native library the moment it is constructed. Setting this lets a test
inject nitro_http's RequestExecutor / StreamDemux fakes and exercise
the owned-client path — including disposal on close — with no engine
present. The settings handed to the factory are the ones the adapter would
have used, forced flags included. Reset it to null afterwards.
Implementation
static nh.NitroHttpClient Function(nh.ClientSettings settings)?
clientFactoryForTesting;