()
| 83 | |
| 84 | #[test] |
| 85 | fn test_serde_bitflags_default() { |
| 86 | assert_tokens(&SerdeFlags::empty().readable(), &[Str("")]); |
| 87 | |
| 88 | assert_tokens(&SerdeFlags::empty().compact(), &[U32(0)]); |
| 89 | |
| 90 | assert_tokens(&(SerdeFlags::A | SerdeFlags::B).readable(), &[Str("A | B")]); |
| 91 | |
| 92 | assert_tokens(&(SerdeFlags::A | SerdeFlags::B).compact(), &[U32(1 | 2)]); |
| 93 | } |
| 94 | } |
nothing calls this directly
no outgoing calls
no test coverage detected