spec-drift 0.1.0

Semantic coherence analysis between specification and implementation for Rust projects.
Documentation
1
2
3
4
5
6
7
8
9
10
use super::Reporter;
use crate::domain::Divergence;

pub struct JsonReporter;

impl Reporter for JsonReporter {
    fn render(&self, divergences: &[Divergence]) -> String {
        serde_json::to_string_pretty(divergences).unwrap_or_else(|_| "[]".to_string())
    }
}