Skip to content

Latest commit

 

History

History
80 lines (73 loc) · 3.08 KB

trace.md

File metadata and controls

80 lines (73 loc) · 3.08 KB

Property notification trace

Only checked steps are shown; the adapter may have executed the full batch. Writes are requested assignments. Callbacks are the new suffix of the cumulative log. count is the property value, not the number of callbacks. The diagrams summarize each step; they do not assert intra-step timing.

Expected

Step Requested action New callbacks Cumulative log Property count Check
1 writes [1, 1]; lock off [1] [1] 1 pass
2 writes [2, 3, 4]; lock on [4] [1, 4] 4 pass
3 writes [4]; lock off [] [1, 4] 4 pass
4 unbind receiver [] [1, 4] 4 pass
5 writes [5]; lock off [] [1, 4] 5 pass
sequenceDiagram
    participant A as Adapter
    participant M as Property count
    participant L as Callback log
    Note over A,L: Step 1 - pass
    A->>M: writes [1, 1], lock off
    Note over A,L: Callbacks during step = [1]
    Note over A,L: Property count = 1, cumulative log = [1]
    Note over A,L: Step 2 - pass
    A->>M: writes [2, 3, 4], lock on
    Note over A,L: Callbacks during step = [4]
    Note over A,L: Property count = 4, cumulative log = [1, 4]
    Note over A,L: Step 3 - pass
    A->>M: writes [4], lock off
    Note over A,L: Callbacks during step = []
    Note over A,L: Property count = 4, cumulative log = [1, 4]
    Note over A,L: Step 4 - pass
    A->>M: unbind receiver
    Note over A,L: Callbacks during step = []
    Note over A,L: Property count = 4, cumulative log = [1, 4]
    Note over A,L: Step 5 - pass
    A->>M: writes [5], lock off
    Note over A,L: Callbacks during step = []
    Note over A,L: Property count = 5, cumulative log = [1, 4]
Loading

Observed

Step Requested action New callbacks Cumulative log Property count Check
1 writes [1, 1]; lock off [1] [1] 1 pass
2 writes [2, 3, 4]; lock on [4] [1, 4] 4 pass
3 writes [4]; lock off [] [1, 4] 4 pass
4 unbind receiver [] [1, 4] 4 pass
5 writes [5]; lock off [] [1, 4] 5 pass
sequenceDiagram
    participant A as Adapter
    participant M as Property count
    participant L as Callback log
    Note over A,L: Step 1 - pass
    A->>M: writes [1, 1], lock off
    Note over A,L: Callbacks during step = [1]
    Note over A,L: Property count = 1, cumulative log = [1]
    Note over A,L: Step 2 - pass
    A->>M: writes [2, 3, 4], lock on
    Note over A,L: Callbacks during step = [4]
    Note over A,L: Property count = 4, cumulative log = [1, 4]
    Note over A,L: Step 3 - pass
    A->>M: writes [4], lock off
    Note over A,L: Callbacks during step = []
    Note over A,L: Property count = 4, cumulative log = [1, 4]
    Note over A,L: Step 4 - pass
    A->>M: unbind receiver
    Note over A,L: Callbacks during step = []
    Note over A,L: Property count = 4, cumulative log = [1, 4]
    Note over A,L: Step 5 - pass
    A->>M: writes [5], lock off
    Note over A,L: Callbacks during step = []
    Note over A,L: Property count = 5, cumulative log = [1, 4]
Loading