()
| 495 | |
| 496 | #[test] |
| 497 | fn test_trunk_new() { |
| 498 | let trunk = make_trunk(); |
| 499 | assert_eq!(trunk.id(), TrunkId::new(NodeId::new(1), 0)); |
| 500 | assert_eq!(trunk.inode(), Inode::new(42)); |
| 501 | assert_eq!(trunk.path(), "src/main.rs"); |
| 502 | assert_eq!(trunk.encoding(), Some(Encoding::Utf8)); |
| 503 | assert!(trunk.state().is_alive()); |
| 504 | } |
| 505 | |
| 506 | #[test] |
| 507 | fn test_trunk_is_text() { |
nothing calls this directly
no test coverage detected