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

Function test_enum_unit_variant

src/ser.rs:825–832  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

823
824 #[test]
825 fn test_enum_unit_variant() {
826 #[derive(Serialize)]
827 enum E {
828 Empty,
829 }
830
831 test_ser(E::Empty, r#""Empty""#);
832 }
833
834 #[test]
835 fn test_enum_tuple_variant() {

Callers

nothing calls this directly

Calls 1

test_serFunction · 0.85

Tested by

no test coverage detected