Skip to main content

plan_mutations_for_session_with

Function plan_mutations_for_session_with 

Source
pub fn plan_mutations_for_session_with(
    session: &AnalysisSession,
    request: &MutationPlanRequest,
    skip_components: impl FnOnce(&MutationPlan) -> bool,
) -> Result<MutationPlan, MutationPlanError>
Expand description

Like plan_mutations_for_session, but skip_components reads the first plan and decides if the component files leave the plan. The test runner can depend on the test files of the plan, so the caller decides after the first plan. When the first plan has a component mutant and skip_components returns true, the plan is built again from the same analysis with MutationPlanRequest::skip_component_files set.

ยงErrors

Returns an error when the analysis or the plugin stage fails.