Compare commits

..

No commits in common. "f1499090757d4f1a55a74cece0cc0701564ca16a" and "e21a7308c32c64ba5e64a2f6e5dc2099efd1e175" have entirely different histories.

2 changed files with 757 additions and 629 deletions

View file

@ -74,13 +74,8 @@ pub fn main(init: std.process.Init) !void {
if (std.mem.eql(u8, format, "srf")) {
var reader = std.Io.Reader.fixed(data.items);
const it = try srf.iterator(&reader, allocator, .{ .parse_allocator = .none });
defer it.deinit();
// We want to touch every field, otherwise we're not really excercising
// this appropriately
while (try it.next()) |rec| {
while (try rec.next()) |_| {}
}
const records = try srf.parse(&reader, allocator, .{ .parse_allocator = .none });
defer records.deinit();
} else if (std.mem.eql(u8, format, "jsonl")) {
var lines = std.mem.splitScalar(u8, data.items, '\n');
while (lines.next()) |line| {

File diff suppressed because it is too large Load diff