Skip to content

Commit aa0d2e3

Browse files
committed
WIP
1 parent eec80ac commit aa0d2e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+64
-64
lines changed

Tests/Tests/TestUtils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ enum TestUtils {
4343
#endif
4444

4545
@MainActor
46-
func XCTAssertViewIntrospection<Entity: AnyObject>(
46+
func assertIntrospection<Entity: AnyObject>(
4747
of type: Entity.Type,
4848
@ViewBuilder view: (Spies<Entity>) -> some View,
4949
extraAssertions: ([Entity]) -> Void = { _ in },

Tests/Tests/ViewTypes/ColorPickerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class ColorPickerTests: XCTestCase {
1919
throw XCTSkip()
2020
}
2121

22-
XCTAssertViewIntrospection(of: PlatformColorPicker.self) { spies in
22+
assertIntrospection(of: PlatformColorPicker.self) { spies in
2323
let spy0 = spies[0]
2424
let spy1 = spies[1]
2525
let spy2 = spies[2]

Tests/Tests/ViewTypes/DatePickerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class DatePickerTests: XCTestCase {
1616
let date1 = Date(timeIntervalSince1970: 5)
1717
let date2 = Date(timeIntervalSince1970: 10)
1818

19-
XCTAssertViewIntrospection(of: PlatformDatePicker.self) { spies in
19+
assertIntrospection(of: PlatformDatePicker.self) { spies in
2020
let spy0 = spies[0]
2121
let spy1 = spies[1]
2222
let spy2 = spies[2]

Tests/Tests/ViewTypes/DatePickerWithCompactFieldStyleTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class DatePickerWithCompactStyleTests: XCTestCase {
2121
let date1 = Date(timeIntervalSince1970: 5)
2222
let date2 = Date(timeIntervalSince1970: 10)
2323

24-
XCTAssertViewIntrospection(of: PlatformDatePickerWithCompactStyle.self) { spies in
24+
assertIntrospection(of: PlatformDatePickerWithCompactStyle.self) { spies in
2525
let spy0 = spies[0]
2626
let spy1 = spies[1]
2727
let spy2 = spies[2]

Tests/Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class DatePickerWithGraphicalStyleTests: XCTestCase {
2121
let date1 = Date(timeIntervalSince1970: 3600 * 24 * 1)
2222
let date2 = Date(timeIntervalSince1970: 3600 * 24 * 2)
2323

24-
XCTAssertViewIntrospection(of: PlatformDatePickerWithGraphicalStyle.self) { spies in
24+
assertIntrospection(of: PlatformDatePickerWithGraphicalStyle.self) { spies in
2525
let spy0 = spies[0]
2626
let spy1 = spies[1]
2727
let spy2 = spies[2]

Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class DatePickerWithWheelStyleTests: XCTestCase {
1414
let date1 = Date(timeIntervalSince1970: 5)
1515
let date2 = Date(timeIntervalSince1970: 10)
1616

17-
XCTAssertViewIntrospection(of: PlatformDatePickerWithWheelStyle.self) { spies in
17+
assertIntrospection(of: PlatformDatePickerWithWheelStyle.self) { spies in
1818
let spy0 = spies[0]
1919
let spy1 = spies[1]
2020
let spy2 = spies[2]

Tests/Tests/ViewTypes/FormTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final class FormTests: XCTestCase {
1212
#endif
1313

1414
func testForm() throws {
15-
XCTAssertViewIntrospection(of: PlatformForm.self) { spies in
15+
assertIntrospection(of: PlatformForm.self) { spies in
1616
let spy0 = spies[0]
1717
let spy1 = spies[1]
1818

Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class FormWithGroupedStyleTests: XCTestCase {
1616
throw XCTSkip()
1717
}
1818

19-
XCTAssertViewIntrospection(of: PlatformFormWithGroupedStyle.self) { spies in
19+
assertIntrospection(of: PlatformFormWithGroupedStyle.self) { spies in
2020
let spy0 = spies[0]
2121
let spy1 = spies[1]
2222

Tests/Tests/ViewTypes/FullScreenCoverTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ final class FullScreenCoverTests: XCTestCase {
1111
throw XCTSkip()
1212
}
1313

14-
XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in
14+
assertIntrospection(of: UIPresentationController.self) { spies in
1515
let spy0 = spies[0]
1616

1717
Text("Root")

Tests/Tests/ViewTypes/ListCellTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ final class ListCellTests: XCTestCase {
1111
#endif
1212

1313
func testListCell() {
14-
XCTAssertViewIntrospection(of: PlatformListCell.self) { spies in
14+
assertIntrospection(of: PlatformListCell.self) { spies in
1515
let spy = spies[0]
1616

1717
List {
@@ -27,7 +27,7 @@ final class ListCellTests: XCTestCase {
2727
}
2828

2929
func testMaskedListCell() {
30-
XCTAssertViewIntrospection(of: PlatformListCell.self) { spies in
30+
assertIntrospection(of: PlatformListCell.self) { spies in
3131
let spy = spies[0]
3232

3333
List {

0 commit comments

Comments
 (0)