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

Function test_struct

src/ser.rs:761–775  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

759
760 #[test]
761 fn test_struct() {
762 #[derive(Serialize)]
763 struct Struct {
764 foo: String,
765 bar: usize,
766 }
767
768 test_ser(
769 Struct {
770 foo: "foo".to_string(),
771 bar: 5,
772 },
773 r#"{"foo":"foo","bar":5}"#,
774 );
775 }
776
777 #[test]
778 fn test_nested_struct() {

Callers

nothing calls this directly

Calls 1

test_serFunction · 0.85

Tested by

no test coverage detected