Skip to content

Commit

Permalink
Remove serde_yaml from tests (no longer maintained)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bromeon committed Apr 6, 2024
1 parent b2c20b3 commit 5c2c819
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ ron = "0.8"
serde = "1"
serde_json = "1"
bincode = "1"
serde_yaml = "0.9"
rmp-serde = "1"
futures = "0.3"
15 changes: 0 additions & 15 deletions test/src/test_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pub(crate) fn run_tests() -> bool {

status &= test_ron();
status &= test_json();
status &= test_yaml();
status &= test_msgpack();
status &= test_bincode();

Expand Down Expand Up @@ -164,20 +163,6 @@ crate::godot_itest! { test_json {
assert_eq!(foo, result);
}}

crate::godot_itest! { test_yaml {
let foo = Foo::new();

let yaml_str = serde_yaml::to_string(&foo).expect("Foo to YAML");
let result = serde_yaml::from_str::<Foo>(&yaml_str).expect("Foo from YAML");
assert_eq!(foo, result);

let yaml_str =
serde_yaml::to_string(&foo.to_variant().dispatch()).expect("Dispatch to YAML");
let disp = serde_yaml::from_str::<VariantDispatch>(&yaml_str).expect("Dispatch from YAML");
let result = Foo::from_variant(&Variant::from(&disp)).expect("Foo from Dispatch from YAML");
assert_eq!(foo, result);
}}

crate::godot_itest! { test_msgpack {
let foo = Foo::new();

Expand Down

0 comments on commit 5c2c819

Please sign in to comment.