MCPcopy Create free account
hub / github.com/davidhewitt/pythonize / test_enum_tuple_variant

Function test_enum_tuple_variant

src/ser.rs:835–842  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

833
834 #[test]
835 fn test_enum_tuple_variant() {
836 #[derive(Serialize)]
837 enum E {
838 Tuple(i32, String),
839 }
840
841 test_ser(E::Tuple(5, "foo".to_string()), r#"{"Tuple":[5,"foo"]}"#);
842 }
843
844 #[test]
845 fn test_enum_newtype_variant() {

Callers

nothing calls this directly

Calls 1

test_serFunction · 0.85

Tested by

no test coverage detected