Skip to main content

descent_case

Function descent_case 

Source
pub fn descent_case(
    document: &Value,
    case: &str,
    file: &str,
    sha256: &str,
) -> Option<(Reference, DescentSetup)>
Expand description

The case named case of a recovery-descent fixture, as the oracle’s answers and the inputs it flew. None if the document has no such case, does not name the run that produced it, or is not that fixture’s shape.

file is the reference’s path from the repository root and sha256 its hash; both go into the report, so a hand-edited reference changes the report rather than only the file.