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

Function test_tuple_struct

src/ser.rs:802–807  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

800
801 #[test]
802 fn test_tuple_struct() {
803 #[derive(Serialize)]
804 struct TupleStruct(String, usize);
805
806 test_ser(TupleStruct("foo".to_string(), 5), r#"["foo",5]"#);
807 }
808
809 #[test]
810 fn test_tuple() {

Callers

nothing calls this directly

Calls 2

test_serFunction · 0.85
TupleStructClass · 0.70

Tested by

no test coverage detected