Skip to content

Commit 5c2c819

Browse files
committed
Remove serde_yaml from tests (no longer maintained)
1 parent b2c20b3 commit 5c2c819

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

test/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@ ron = "0.8"
2626
serde = "1"
2727
serde_json = "1"
2828
bincode = "1"
29-
serde_yaml = "0.9"
3029
rmp-serde = "1"
3130
futures = "0.3"

test/src/test_serde.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pub(crate) fn run_tests() -> bool {
1616

1717
status &= test_ron();
1818
status &= test_json();
19-
status &= test_yaml();
2019
status &= test_msgpack();
2120
status &= test_bincode();
2221

@@ -164,20 +163,6 @@ crate::godot_itest! { test_json {
164163
assert_eq!(foo, result);
165164
}}
166165

167-
crate::godot_itest! { test_yaml {
168-
let foo = Foo::new();
169-
170-
let yaml_str = serde_yaml::to_string(&foo).expect("Foo to YAML");
171-
let result = serde_yaml::from_str::<Foo>(&yaml_str).expect("Foo from YAML");
172-
assert_eq!(foo, result);
173-
174-
let yaml_str =
175-
serde_yaml::to_string(&foo.to_variant().dispatch()).expect("Dispatch to YAML");
176-
let disp = serde_yaml::from_str::<VariantDispatch>(&yaml_str).expect("Dispatch from YAML");
177-
let result = Foo::from_variant(&Variant::from(&disp)).expect("Foo from Dispatch from YAML");
178-
assert_eq!(foo, result);
179-
}}
180-
181166
crate::godot_itest! { test_msgpack {
182167
let foo = Foo::new();
183168

0 commit comments

Comments
 (0)