| ... | ... | @@ -168,18 +168,6 @@ test { |
| 168 | 168 | ); |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | | test { |
| 172 | | var arena = std.heap.ArenaAllocator.init(std.testing.allocator); |
| 173 | | defer arena.deinit(); |
| 174 | | const alloc = arena.allocator(); |
| 175 | | const git_dir = try nfs.cwd().openDir(".git", .{}); |
| 176 | | defer git_dir.close(); |
| 177 | | const t = try git.parseTreeDiffMeta(try git.getTreeDiff(alloc, git_dir, .{ .id = "a542da41f1f0c59fdd0e1527cf5ff9de3f6a0c8e" }, .{ .id = "c39f57f6bb01664a7146ddbfc3debe76ec135f44" })); |
| 178 | | try expect(t.files_changed).toEqual(1); |
| 179 | | try expect(t.lines_added).toEqual(4); |
| 180 | | try expect(t.lines_removed).toEqual(4); |
| 181 | | } |
| 182 | | |
| 183 | 171 | test { |
| 184 | 172 | var arena = std.heap.ArenaAllocator.init(std.testing.allocator); |
| 185 | 173 | defer arena.deinit(); |