()
| 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() { |
nothing calls this directly
no test coverage detected