use super::fixtures;
use super::{DiffFormatter, JsonFormatter, TableFormatter};
#[test]
fn empty_table() {
insta::assert_snapshot!(TableFormatter.format(&fixtures::empty()));
}
#[test]
fn empty_json() {
insta::assert_snapshot!(JsonFormatter.format(&fixtures::empty()));
}
#[test]
fn catalog_schema_field_diffs_table() {
insta::assert_snapshot!(
TableFormatter.format(&fixtures::catalog_schema_with_mixed_field_diffs())
);
}
#[test]
fn catalog_schema_field_diffs_json() {
insta::assert_snapshot!(
JsonFormatter.format(&fixtures::catalog_schema_with_mixed_field_diffs())
);
}
#[test]
fn catalog_schema_unchanged_table() {
insta::assert_snapshot!(TableFormatter.format(&fixtures::catalog_schema_unchanged()));
}
#[test]
fn catalog_schema_unchanged_json() {
insta::assert_snapshot!(JsonFormatter.format(&fixtures::catalog_schema_unchanged()));
}
#[test]
fn catalog_items_table() {
insta::assert_snapshot!(TableFormatter.format(&fixtures::catalog_items_with_changes()));
}
#[test]
fn catalog_items_json() {
insta::assert_snapshot!(JsonFormatter.format(&fixtures::catalog_items_with_changes()));
}
#[test]
fn content_block_added_table() {
insta::assert_snapshot!(TableFormatter.format(&fixtures::content_block_added()));
}
#[test]
fn content_block_added_json() {
insta::assert_snapshot!(JsonFormatter.format(&fixtures::content_block_added()));
}
#[test]
fn content_block_body_modified_table() {
insta::assert_snapshot!(TableFormatter.format(&fixtures::content_block_body_modified()));
}
#[test]
fn content_block_body_modified_json() {
insta::assert_snapshot!(JsonFormatter.format(&fixtures::content_block_body_modified()));
}
#[test]
fn content_block_orphan_table() {
insta::assert_snapshot!(TableFormatter.format(&fixtures::content_block_orphan()));
}
#[test]
fn content_block_orphan_json() {
insta::assert_snapshot!(JsonFormatter.format(&fixtures::content_block_orphan()));
}
#[test]
fn all_kinds_mixed_table() {
insta::assert_snapshot!(TableFormatter.format(&fixtures::all_kinds_mixed()));
}
#[test]
fn all_kinds_mixed_json() {
insta::assert_snapshot!(JsonFormatter.format(&fixtures::all_kinds_mixed()));
}
#[test]
fn custom_attribute_unchanged_with_hint_table() {
insta::assert_snapshot!(
TableFormatter.format(&fixtures::custom_attribute_unchanged_with_hint())
);
}
#[test]
fn custom_attribute_unchanged_with_hint_json() {
insta::assert_snapshot!(JsonFormatter.format(&fixtures::custom_attribute_unchanged_with_hint()));
}