()
| 479 | |
| 480 | #[test] |
| 481 | fn test_trunk_is_text() { |
| 482 | let trunk = make_trunk(); |
| 483 | assert!(trunk.is_text()); |
| 484 | |
| 485 | let binary_trunk = Trunk::new( |
| 486 | TrunkId::new(NodeId::new(1), 1), |
| 487 | Inode::new(43), |
| 488 | "image.png".to_string(), |
| 489 | Some(Encoding::Binary), |
| 490 | ); |
| 491 | assert!(!binary_trunk.is_text()); |
| 492 | } |
| 493 | |
| 494 | #[test] |
| 495 | fn test_trunk_is_binary() { |
nothing calls this directly
no test coverage detected