1 2 3 4 5 6 7 8 9
use bytes::Bytes; use treedx::binary::{is_binary_body, to_bytes}; #[test] fn binary_helpers_use_bytes() { let body = to_bytes(Bytes::from_static(b"abc")); assert!(is_binary_body(&body)); assert_eq!(body, Bytes::from_static(b"abc")); }