╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │146 // get the issue out of the map that was edited │ │147 const first_issue_cursor = try event_id_to_issue.getCursor(hash.hashInt(repo_opts.hash, &first_event_id)) orelse return error.NotFound;│ │148 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │149 - const first_issue = try evt.Issue.read(Repo.DB, repo_opts.hash, &arena, first_issue_map); │ │149 + const first_issue = try evt.read(evt.Issue, Repo.DB, repo_opts.hash, &arena, first_issue_map); │ │150 │ │151 // the description was correctly edited │ │152 try std.testing.expectEqualStrings(events_to_consume[1].data.issue.?.description, first_issue.description); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │282 // get the issue out of the map that was edited │ │283 const first_issue_cursor = try event_id_to_issue.getCursor(hash.hashInt(repo_opts.hash, &first_event_id)) orelse return error.NotFound;│ │284 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │285 - const first_issue = try evt.Issue.read(Repo.DB, repo_opts.hash, &arena, first_issue_map); │ │285 + const first_issue = try evt.read(evt.Issue, Repo.DB, repo_opts.hash, &arena, first_issue_map); │ │286 │ │287 // the description is no longer edited │ │288 try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.description, first_issue.description); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │493 _ = try std.fmt.hexToBytes(&first_issue_id, &events_to_consume[0].id); │ │494 const first_issue_cursor = try event_id_to_issue.getCursor(hash.hashInt(repo_opts.hash, &first_issue_id)) orelse return error.NotFound;│ │495 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │496 - const first_issue = try evt.Issue.read(Repo.DB, repo_opts.hash, &arena, first_issue_map); │ │496 + const first_issue = try evt.read(evt.Issue, Repo.DB, repo_opts.hash, &arena, first_issue_map); │ │497 │ │498 try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.description, first_issue.description); │ │499 try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.tags, first_issue.tags); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │617 _ = try std.fmt.hexToBytes(&first_issue_id, &events_to_consume[0].id); │ │618 const first_issue_cursor = try event_id_to_issue.getCursor(hash.hashInt(repo_opts.hash, &first_issue_id)) orelse return error.NotFound;│ │619 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │620 - const first_issue = try evt.Issue.read(Repo.DB, repo_opts.hash, &arena, first_issue_map); │ │620 + const first_issue = try evt.read(evt.Issue, Repo.DB, repo_opts.hash, &arena, first_issue_map); │ │621 │ │622 try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.description, first_issue.description); │ │623 try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.tags, first_issue.tags); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │630 _ = try std.fmt.hexToBytes(&first_issue_id, &events_to_consume2[0].id); │ │631 const first_issue_cursor = try event_id_to_issue.getCursor(hash.hashInt(repo_opts.hash, &first_issue_id)) orelse return error.NotFound;│ │632 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │633 - const first_issue = try evt.Issue.read(Repo.DB, repo_opts.hash, &arena, first_issue_map); │ │633 + const first_issue = try evt.read(evt.Issue, Repo.DB, repo_opts.hash, &arena, first_issue_map); │ │634 │ │635 try std.testing.expectEqualStrings(events_to_consume2[0].data.issue.?.description, first_issue.description); │ │636 try std.testing.expectEqualStrings(events_to_consume2[0].data.issue.?.tags, first_issue.tags); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │914 // get the user out of the map that was edited │ │915 const user_cursor = try event_id_to_user.getCursor(hash.hashInt(repo_opts.hash, &user_event_id)) orelse return error.NotFound;│ │916 const user_map = try Repo.DB.HashMap(.read_only).init(user_cursor); │ │917 - const user_event = try evt.User.read(Repo.DB, repo_opts.hash, &arena, user_map); │ │917 + const user_event = try evt.read(evt.User, Repo.DB, repo_opts.hash, &arena, user_map); │ │918 │ │919 // the password was correctly edited │ │920 try std.testing.expectEqualStrings(events_to_consume[1].data.user.?.password_hash, user_event.password_hash); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │926 // get the repo out of the map │ │927 const repo_cursor = try event_id_to_repo.getCursor(hash.hashInt(repo_opts.hash, &repo_event_id)) orelse return error.NotFound;│ │928 const repo_map = try Repo.DB.HashMap(.read_only).init(repo_cursor); │ │929 - const repo_event = try evt.Repo.read(Repo.DB, repo_opts.hash, &arena, repo_map); │ │929 + const repo_event = try evt.read(evt.Repo, Repo.DB, repo_opts.hash, &arena, repo_map); │ │930 │ │931 try std.testing.expectEqualSlices(u8, &user_event_id, repo_event.user_id); │ │932 try std.testing.expectEqualStrings("ziglings", repo_event.name); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯