(&self, view: &str, path: &str, expected: &[u8])
| 85 | } |
| 86 | |
| 87 | fn assert_content(&self, view: &str, path: &str, expected: &[u8]) { |
| 88 | // Reopen and render from canonical data, independently of the Git worktree. |
| 89 | let repo = atomic_repository::Repository::open(self.root.path()).unwrap(); |
| 90 | assert_eq!( |
| 91 | repo.get_file_content_on_view(path, view) |
| 92 | .unwrap() |
| 93 | .as_deref(), |
| 94 | Some(expected) |
| 95 | ); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | fn preinit_record(native: bool) { |
no test coverage detected