()
| 853 | |
| 854 | #[test] |
| 855 | fn test_enum_struct_variant() { |
| 856 | #[derive(Serialize)] |
| 857 | enum E { |
| 858 | Struct { foo: String, bar: usize }, |
| 859 | } |
| 860 | |
| 861 | test_ser( |
| 862 | E::Struct { |
| 863 | foo: "foo".to_string(), |
| 864 | bar: 5, |
| 865 | }, |
| 866 | r#"{"Struct":{"foo":"foo","bar":5}}"#, |
| 867 | ); |
| 868 | } |
| 869 | |
| 870 | #[test] |
| 871 | fn test_integers() { |
nothing calls this directly
no test coverage detected