Skip to content

Commit 6da88da

Browse files
committed
Add iOS 16.4+ availability annotations to Util tests
1 parent 55f585a commit 6da88da

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Tests/OpenAttributeGraphCxxTests/Util/ForwardListTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Testing
99
struct ForwardListTests {
1010

1111
@Test("Initialize empty list")
12+
@available(iOS 16.4, *)
1213
func initEmpty() {
1314
let list = util.UInt64ForwardList.create()
1415
defer {
@@ -19,6 +20,7 @@ struct ForwardListTests {
1920
}
2021

2122
@Test("Push element")
23+
@available(iOS 16.4, *)
2224
func pushElement() {
2325
let list = util.UInt64ForwardList.create()
2426
defer {
@@ -34,6 +36,7 @@ struct ForwardListTests {
3436
}
3537

3638
@Test("Push multiple elements")
39+
@available(iOS 16.4, *)
3740
func pushMultipleElements() {
3841
let list = util.UInt64ForwardList.create()
3942
defer {
@@ -49,6 +52,7 @@ struct ForwardListTests {
4952
}
5053

5154
@Test("Remove element")
55+
@available(iOS 16.4, *)
5256
func removeElement() {
5357
let list = util.UInt64ForwardList.create()
5458
defer {
@@ -65,6 +69,7 @@ struct ForwardListTests {
6569
}
6670

6771
@Test("Sequential operations")
72+
@available(iOS 16.4, *)
6873
func sequentialOperations() {
6974
let list = util.UInt64ForwardList.create()
7075
defer {

Tests/OpenAttributeGraphCxxTests/Util/HashTableTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Testing
99
struct HashTableTests {
1010

1111
@Test("Initialize empty table")
12+
@available(iOS 16.4, *)
1213
func initEmpty() {
1314
let table = util.UntypedTable.create()
1415
defer {
@@ -20,6 +21,7 @@ struct HashTableTests {
2021
}
2122

2223
@Test("Insert entry")
24+
@available(iOS 16.4, *)
2325
func insertEntry() {
2426
class Value {
2527
let prop: String
@@ -51,6 +53,7 @@ struct HashTableTests {
5153
}
5254

5355
@Test("Insert multiple entries")
56+
@available(iOS 16.4, *)
5457
func insertMultipleEntries() {
5558
class Value {
5659
let prop: String
@@ -104,6 +107,7 @@ struct HashTableTests {
104107
}
105108

106109
@Test("Remove entry")
110+
@available(iOS 16.4, *)
107111
func removeEntry() {
108112
class Value {
109113
let prop: String
@@ -140,6 +144,7 @@ struct HashTableTests {
140144
}
141145

142146
@Test("Remove from empty table")
147+
@available(iOS 16.4, *)
143148
func removeFromEmptyTable() {
144149
let table = util.UntypedTable.create()
145150
defer {

Tests/OpenAttributeGraphCxxTests/Util/HeapTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ struct HeapTests {
1111
let nodeSize = 16
1212

1313
@Test("Initializing with default arguments")
14+
@available(iOS 16.4, *)
1415
func initDefault() {
1516
let heap = util.Heap.create(nil, 0, 0)
1617
defer {
@@ -23,6 +24,7 @@ struct HeapTests {
2324
}
2425

2526
@Test("Initializing with custom increment")
27+
@available(iOS 16.4, *)
2628
func initWithCustomIncrement() {
2729
let customIncrement = 4096
2830
let heap = util.Heap.create(nil, 0, customIncrement)
@@ -36,6 +38,7 @@ struct HeapTests {
3638
}
3739

3840
@Test("Creating heap with initial buffer")
41+
@available(iOS 16.4, *)
3942
func createWithInitialBuffer() {
4043
var buffer = Array<UInt8>(repeating: 0, count: 1024)
4144

@@ -53,6 +56,7 @@ struct HeapTests {
5356
}
5457

5558
@Test("Reset heap functionality")
59+
@available(iOS 16.4, *)
5660
func resetHeap() {
5761
let heap = util.Heap.create(nil, 0, 1024)
5862
defer {
@@ -69,6 +73,7 @@ struct HeapTests {
6973
}
7074

7175
@Test("Print heap debug information")
76+
@available(iOS 16.4, *)
7277
func printHeapInfo() {
7378
let heap = util.Heap.create(nil, 0, 1024)
7479
defer {

0 commit comments

Comments
 (0)