Skip to main content

classify_change

Function classify_change 

Source
pub fn classify_change(
    previous: Option<&ProjectInstructionObservation>,
    current_exists: bool,
    current_hash: &str,
) -> InstructionChange
Expand description

Compare a fresh observation against the recorded one.

Free function rather than a Store method: it is pure, and keeping it that way means the comparison can be unit-tested without a database and reused wherever both halves are already in hand.