MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / analyze

Function analyze

libatomic/src/review/analysis.rs:524–546  ·  view source on GitHub ↗
(before: Result<Option<&[u8]>, String>, after: &[u8], added: bool)

Source from the content-addressed store, hash-verified

522 use super::*;
523
524 fn analyze(before: Result<Option<&[u8]>, String>, after: &[u8], added: bool) -> AnalysisReport {
525 let mut report = AnalysisReport {
526 schema: SCHEMA.into(),
527 analyzer: ANALYZER.into(),
528 analyzer_version: "test".into(),
529 checks: vec![],
530 findings: vec![],
531 metrics: vec![],
532 metric_diagnostics: vec![],
533 metric_comparison_scope: vec![],
534 excluded_metadata_paths: vec![],
535 };
536 inspect_content(
537 &mut report,
538 &mut ParserRegistry::new(),
539 "recorded-hash",
540 "lib.rs",
541 before,
542 after,
543 added,
544 );
545 report
546 }
547
548 #[test]
549 fn manageability_reports_new_or_worsened_joint_burden_not_unchanged_counts() {

Calls 1

inspect_contentFunction · 0.85