| ... | ... | @@ -117,7 +117,7 @@ pub const CacheHash = struct { |
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | | pub fn cache_file(self: *@This(), file_path: []const u8) !void { |
| 120 | pub fn addFile(self: *@This(), file_path: []const u8) !void { |
| 121 | 121 | debug.assert(self.manifest_file == null); |
| 122 | 122 | |
| 123 | 123 | var cache_hash_file = try self.files.addOne(); |
| ... | ... | @@ -344,7 +344,7 @@ test "cache file and the recall it" { |
| 344 | 344 | ch.add(true); |
| 345 | 345 | ch.add(@as(u16, 1234)); |
| 346 | 346 | ch.add("1234"); |
| 347 | | try ch.cache_file("test.txt"); |
| 347 | try ch.addFile("test.txt"); |
| 348 | 348 | |
| 349 | 349 | // There should be nothing in the cache |
| 350 | 350 | debug.assert((try ch.hit(&digest1)) == false); |
| ... | ... | @@ -358,7 +358,7 @@ test "cache file and the recall it" { |
| 358 | 358 | ch.add(true); |
| 359 | 359 | ch.add(@as(u16, 1234)); |
| 360 | 360 | ch.add("1234"); |
| 361 | | try ch.cache_file("test.txt"); |
| 361 | try ch.addFile("test.txt"); |
| 362 | 362 | |
| 363 | 363 | // Cache hit! We just "built" the same file |
| 364 | 364 | debug.assert((try ch.hit(&digest2)) == true); |