Skip to content

Commit c2ea28d

Browse files
committed
Add compatibility tests for deferring subgraph invalidation
1 parent 0fa3d00 commit c2ea28d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Tests/OpenAttributeGraphCompatibilityTests/Graph/GraphCompatibilityTests.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,18 @@ struct GraphCompatibilityTests {
8585
#expect(graph.mainUpdates == 0)
8686
}
8787
#endif
88+
89+
@Test(.disabled(if: !compatibilityTestEnabled, "Not implemented on OAG"))
90+
func beginDeferringSubgraphInvalidation() {
91+
let graph = Graph()
92+
93+
let wasDeferring1 = graph.beginDeferringSubgraphInvalidation()
94+
#expect(wasDeferring1 == false)
95+
96+
let wasDeferring2 = graph.beginDeferringSubgraphInvalidation()
97+
#expect(wasDeferring2 == true)
98+
99+
graph.endDeferringSubgraphInvalidation(wasDeferring: wasDeferring2)
100+
graph.endDeferringSubgraphInvalidation(wasDeferring: wasDeferring1)
101+
}
88102
}

0 commit comments

Comments
 (0)