Skip to content

Built-in commutativity checker #2

@lukaskubanek

Description

@lukaskubanek

Since commutativity is a core property of MRDTs, the library should help users verify that their merge options produce commutative results.

  public enum MRDTCommutativityChecker {
      public static func enable() {}
      public static func disable() {}
  }

When enabled, each conformance performs the merge in both directions and triggers an assertionFailure if the results differ. When disabled (the default), no checking happens and there is no runtime cost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions