()
| 505 | |
| 506 | #[test] |
| 507 | fn test_trunk_is_text() { |
| 508 | let trunk = make_trunk(); |
| 509 | assert!(trunk.is_text()); |
| 510 | |
| 511 | let binary_trunk = Trunk::new( |
| 512 | TrunkId::new(NodeId::new(1), 1), |
| 513 | Inode::new(43), |
| 514 | "image.png".to_string(), |
| 515 | Some(Encoding::Binary), |
| 516 | ); |
| 517 | assert!(!binary_trunk.is_text()); |
| 518 | } |
| 519 | |
| 520 | #[test] |
| 521 | fn test_trunk_is_binary() { |
nothing calls this directly
no test coverage detected