Skip to content

Commit 5a5457a

Browse files
authored
Add file:line: to unimplemented (#36)
* wip * wip * wip * wip * wip
1 parent 0d242a5 commit 5a5457a

File tree

11 files changed

+316
-147
lines changed

11 files changed

+316
-147
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@ jobs:
1313
name: MacOS
1414
runs-on: macOS-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- name: Run tests
1818
run: make test
1919

2020
ubuntu:
2121
name: Ubuntu
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2525
- name: Run tests
2626
run: make test
27+
2728
wasm:
2829
name: SwiftWASM
2930
runs-on: ubuntu-latest
@@ -33,7 +34,7 @@ jobs:
3334
- { toolchain: wasm-5.6.0-RELEASE }
3435

3536
steps:
36-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v3
3738
- run: echo "${{ matrix.toolchain }}" > .swift-version
3839
- uses: swiftwasm/[email protected]
3940
with:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ EXPECTED_STRING = This is expected to fail!
66
EXPECTED = \033[31m\"$(EXPECTED_STRING)\"\033[0m
77

88
test:
9-
@swift test 2>&1 | grep '$(EXPECTED_STRING)' > /dev/null \
9+
@TEST_FAILURE=true swift test 2>&1 | grep '$(EXPECTED_STRING)' > /dev/null \
1010
&& (echo "$(PASS) $(XCT_FAIL) was called with $(EXPECTED)" && exit) \
1111
|| (echo "$(FAIL) expected $(XCT_FAIL) to be called with $(EXPECTED)" >&2 && exit 1)
1212

Sources/XCTestDynamicOverlay/Documentation.docc/Unimplemented.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ``XCTestDynamicOverlay/unimplemented(_:)-1zu4x``
1+
# ``XCTestDynamicOverlay/unimplemented(_:fileID:line:)-5098a``
22

33
## Topics
44

@@ -8,17 +8,17 @@
88

99
### Overloads
1010

11-
- ``unimplemented(_:)-704b``
12-
- ``unimplemented(_:)-4d789``
13-
- ``unimplemented(_:)-g38d``
14-
- ``unimplemented(_:)-5nsua``
15-
- ``unimplemented(_:)-6kjbz``
16-
- ``unimplemented(_:)-2iso0``
17-
- ``unimplemented(_:)-9317e``
18-
- ``unimplemented(_:)-8q4uq``
19-
- ``unimplemented(_:)-675zn``
20-
- ``unimplemented(_:)-8jzir``
21-
- ``unimplemented(_:)-98mj3``
11+
- ``unimplemented(_:fileID:line:)-5po3t``
12+
- ``unimplemented(_:fileID:line:)-75xnz``
13+
- ``unimplemented(_:fileID:line:)-8czxo``
14+
- ``unimplemented(_:fileID:line:)-161a``
15+
- ``unimplemented(_:fileID:line:)-6cyz2``
16+
- ``unimplemented(_:fileID:line:)-5iwue``
17+
- ``unimplemented(_:fileID:line:)-3dnau``
18+
- ``unimplemented(_:fileID:line:)-2ndsd``
19+
- ``unimplemented(_:fileID:line:)-38aet``
20+
- ``unimplemented(_:fileID:line:)-9b7um``
21+
- ``unimplemented(_:fileID:line:)-85v19``
2222

2323
### Deprecations
2424

Sources/XCTestDynamicOverlay/Documentation.docc/UnimplementedPlaceholder.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
# ``XCTestDynamicOverlay/unimplemented(_:placeholder:)-2d408``
1+
# ``XCTestDynamicOverlay/unimplemented(_:placeholder:fileID:line:)-7jrdo``
22

33
## Topics
44

55
### Overloads
66

7-
- ``unimplemented(_:placeholder:)-8mb24``
8-
- ``unimplemented(_:file:line:)-ml1i``
9-
- ``unimplemented(_:placeholder:)-5hdhw``
10-
- ``unimplemented(_:file:line:)-3ro24``
11-
- ``unimplemented(_:file:line:)-phev``
12-
- ``unimplemented(_:placeholder:)-1wez4``
13-
- ``unimplemented(_:file:line:)-6a9ed``
14-
- ``unimplemented(_:placeholder:)-2dhf2``
15-
- ``unimplemented(_:file:line:)-6p3fr``
16-
- ``unimplemented(_:placeholder:)-3m34w``
17-
- ``unimplemented(_:file:line:)-8z26``
18-
- ``unimplemented(_:placeholder:)-3dj35``
19-
- ``unimplemented(_:file:line:)-3rs4r``
20-
- ``unimplemented(_:placeholder:)-5xjxv``
21-
- ``unimplemented(_:file:line:)-7529p``
22-
- ``unimplemented(_:placeholder:)-9hekk``
23-
- ``unimplemented(_:file:line:)-6dvlt``
24-
- ``unimplemented(_:placeholder:)-1cdj5``
25-
- ``unimplemented(_:file:line:)-3wslm``
26-
- ``unimplemented(_:placeholder:)-4psap``
27-
- ``unimplemented(_:file:line:)-370dz``
28-
- ``unimplemented(_:placeholder:)-8q48o``
29-
- ``unimplemented(_:file:line:)-3fthe``
7+
- ``unimplemented(_:placeholder:fileID:line:)-63r9c``
8+
- ``unimplemented(_:file:fileID:line:)-7naoc``
9+
- ``unimplemented(_:placeholder:fileID:line:)-1d7ul``
10+
- ``unimplemented(_:file:fileID:line:)-dpc1``
11+
- ``unimplemented(_:file:fileID:line:)-4of0j``
12+
- ``unimplemented(_:placeholder:fileID:line:)-2l156``
13+
- ``unimplemented(_:file:fileID:line:)-3i70x``
14+
- ``unimplemented(_:placeholder:fileID:line:)-4l5m5``
15+
- ``unimplemented(_:file:fileID:line:)-53i23``
16+
- ``unimplemented(_:placeholder:fileID:line:)-29ki5``
17+
- ``unimplemented(_:file:fileID:line:)-8k8ag``
18+
- ``unimplemented(_:placeholder:fileID:line:)-1wuvu``
19+
- ``unimplemented(_:file:fileID:line:)-4ac84``
20+
- ``unimplemented(_:placeholder:fileID:line:)-5yn0z``
21+
- ``unimplemented(_:file:fileID:line:)-25iai``
22+
- ``unimplemented(_:placeholder:fileID:line:)-6zh67``
23+
- ``unimplemented(_:file:fileID:line:)-kf0z``
24+
- ``unimplemented(_:placeholder:fileID:line:)-1lxib``
25+
- ``unimplemented(_:file:fileID:line:)-226zs``
26+
- ``unimplemented(_:placeholder:fileID:line:)-jdwj``
27+
- ``unimplemented(_:file:fileID:line:)-33j2q``
28+
- ``unimplemented(_:placeholder:fileID:line:)-49o3h``
29+
- ``unimplemented(_:file:fileID:line:)-2c0df``
3030

3131
### Deprecations
3232

Sources/XCTestDynamicOverlay/Documentation.docc/XCTestDynamicOverlay.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ XCTest Dynamic Overlay provides APIs for invoking XCTest's `XCTFail` directly in
1919

2020
### Unimplemented Dependencies
2121

22-
- ``unimplemented(_:placeholder:)-2d408``
23-
- ``unimplemented(_:)-1zu4x``
22+
- ``unimplemented(_:placeholder:fileID:line:)-7jrdo``
23+
- ``unimplemented(_:fileID:line:)-5098a``

Sources/XCTestDynamicOverlay/Internal/XCTCurrentTestCase.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44

55
var XCTCurrentTestCase: AnyObject? {
66
guard
7-
let XCTestObservationCenter = NSClassFromString("XCTestObservationCenter")
8-
as Any as? NSObjectProtocol,
9-
String(describing: XCTestObservationCenter) != "<null>",
7+
let XCTestObservationCenter = NSClassFromString("XCTestObservationCenter"),
8+
let XCTestObservationCenter = XCTestObservationCenter as Any as? NSObjectProtocol,
109
let shared = XCTestObservationCenter.perform(Selector(("sharedTestObservationCenter")))?
1110
.takeUnretainedValue(),
1211
let observers = shared.perform(Selector(("observers")))?

0 commit comments

Comments
 (0)