pub struct TestAppBuilder { /* private fields */ }Expand description
Builder for one deterministic native Test App.
Implementations§
Source§impl TestAppBuilder
impl TestAppBuilder
Sourcepub fn new(plan: ResolvedAppPlan) -> Self
pub fn new(plan: ResolvedAppPlan) -> Self
Starts with an exact immutable Plan.
Sourcepub fn with_factory(self, factory: impl NativePluginFactory) -> Self
pub fn with_factory(self, factory: impl NativePluginFactory) -> Self
Adds a native factory available to this test Host.
Sourcepub fn with_registry(self, registry: NativePluginRegistry) -> Self
pub fn with_registry(self, registry: NativePluginRegistry) -> Self
Uses an exact Host-owned native factory registry for this test App.
This is primarily for Adapter crates whose real Host composition builds a registry containing both Plugin and ingress factories. The immutable Plan remains the only source of Plugin dependency selection.
Sourcepub fn with_linked_factories(self) -> Self
pub fn with_linked_factories(self) -> Self
Adds factories linked into the test binary.
Sourcepub fn with_simulator(self, simulator: TestSimulator) -> Self
pub fn with_simulator(self, simulator: TestSimulator) -> Self
Uses one test-private Simulator for this exact App.
Sourcepub fn start(self) -> Result<TestApp, RuntimeFailure>
pub fn start(self) -> Result<TestApp, RuntimeFailure>
Boots the exact Plan through Kernel and the native Adapter.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TestAppBuilder
impl !RefUnwindSafe for TestAppBuilder
impl !Send for TestAppBuilder
impl !Sync for TestAppBuilder
impl !UnwindSafe for TestAppBuilder
impl Unpin for TestAppBuilder
impl UnsafeUnpin for TestAppBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more