Skip to main content

serve_app_runtime_direct_for_test

Function serve_app_runtime_direct_for_test 

Source
pub fn serve_app_runtime_direct_for_test(
    config_record: &ServeConfig,
    repo_root: Option<&Path>,
    binary_dir: Option<&Path>,
    max_requests: usize,
) -> Result<(), &'static str>
Expand description

Starts a direct single-app runtime path for tests.

§Parameters

  • config_record: App-mode serve configuration under test.
  • repo_root: Optional repository root used to resolve app-owned sources.
  • binary_dir: Optional directory used to resolve helper binaries.
  • max_requests: Maximum number of requests to serve before exiting.

§Returns

Returns the successful value produced by crate::runtime::serve_app_runtime_direct_for_test or an error when the operation fails.

§Errors

Returns an error value when crate::runtime::serve_app_runtime_direct_for_test cannot complete successfully.

§Examples

ⓘ
let _result = pharos_native::runtime::serve_app_runtime_direct_for_test(todo!(), std::path::Path::new("."), std::path::Path::new("bin"), todo!(), todo!());
  • crate::runtime for adjacent helpers that share the same runtime surface.