INNER CODE UNIT · Rust
public_schema_up_to_date
stjude-rust-labs/sprocket · crates/sprocket-test-types/src/lib.rs:319
fn public_schema_up_to_date() {
let current_schema = schema_for!(DocumentTests);
let current_schema_pretty = serde_json::to_string_pretty(¤t_schema).unwrap();
pretty_assertions::assert_eq!(
current_schema_pretty,
json_schema().trim(),
"The `sprocket test` schema at `{}` is out of date! Update it with the output of \
`sprocket dev test schema`.",
json_schema_path().display()
);
}
#[test]
fn schema_matches_config() {
let config_str = std::fs::read_to_string(full_test_path()).unwrap();
let schema = serde_yaml_ng::from_str::<Value>(&json_schema()).unwrap();