~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/zds

atproto pds · mirror of https://tangled.org/zat.dev/zds

0
0
20 lines · 812 B Raw History
.{
    .{
        .name = "R1 a delete leaves the record in the tree",
        .file = "src/storage/store.zig",
        .old = "_ = try tree.deleteReturn(path);",
        .new = "_ = path;",
    },
    .{
        .name = "R2 a record swap ignores a different cid",
        .file = "src/storage/store.zig",
        .old = "if (!std.mem.eql(u8, actual, expected)) return Error.InvalidSwap;",
        .new = "if (actual.len == 0 and expected.len == 0) return Error.InvalidSwap;",
    },
    .{
        .name = "R3 a commit swap ignores a superseded head",
        .file = "src/storage/store.zig",
        .old = "if (current == null or !std.mem.eql(u8, current.?.commit_cid_text, expected)) return Error.InvalidSwap;",
        .new = "if (current == null and expected.len == 0) return Error.InvalidSwap;",
    },
}