()
| 759 | |
| 760 | #[test] |
| 761 | fn test_add_file() { |
| 762 | let wc = Memory::new(); |
| 763 | wc.add_file("test.txt", b"hello world"); |
| 764 | |
| 765 | let contents = wc.get_file_contents("test.txt").unwrap(); |
| 766 | assert_eq!(contents, b"hello world"); |
| 767 | } |
| 768 | |
| 769 | #[test] |
| 770 | fn test_add_file_creates_parent_dirs() { |
nothing calls this directly
no test coverage detected