Skip to main content

seed_expectation_satisfied

Function seed_expectation_satisfied 

Source
pub fn seed_expectation_satisfied(
    row_count: i64,
    minimum_rows: Option<i64>,
    exact_rows: Option<i64>,
) -> Result<(), &'static str>
Expand description

Checks a seed row count against exact and minimum expectations.

§Parameters

  • row_count: Observed seeded row count.
  • minimum_rows: Optional minimum row threshold to enforce.
  • exact_rows: Optional exact row count to enforce.

§Returns

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

§Errors

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::seed_expectation_satisfied(todo!(), todo!(), todo!(), todo!());