Skip to main content

pre_verify_patch

Function pre_verify_patch 

Source
pub fn pre_verify_patch(
    file_path: &Path,
    expected_checksum: Option<&Checksum>,
    workspace_root: &Path,
    db_path: &Path,
    strict: bool,
    skip: bool,
) -> Result<Vec<PreVerificationResult>>
Expand description

Run all pre-verification checks for a patch operation.

This function runs all verification checks and returns a Vec of results. The caller should check for blocking failures before proceeding.

§Arguments

  • file_path - Path to the file to verify
  • expected_checksum - Optional expected checksum for external modification detection
  • workspace_root - Workspace directory path
  • db_path - Path to graph database
  • strict - If true, convert warnings to blocking failures
  • skip - If true, skip all verification checks (returns all Pass)

§Returns

  • Ok(Vec<PreVerificationResult>) - All checks completed (may contain warnings)
  • Err(SpliceError) - Fatal error during verification