ripr 0.8.0

Find static mutation-exposure gaps before expensive mutation testing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::analysis::rust_index::{FunctionSummary, RustIndex};
use crate::domain::Probe;

pub(in crate::analysis) fn resolve_owner_function<'index>(
    probe: &Probe,
    index: &'index RustIndex,
) -> Option<&'index FunctionSummary> {
    let owner = probe.owner.as_ref()?;
    index
        .functions
        .iter()
        .find(|function| &function.id == owner)
}