Skip to content

Commit

Permalink
Tests: use XCTUnwrap over forced unwrappng (#619)
Browse files Browse the repository at this point in the history
Failure to unwrap would trigger an assertion failure whereas the use of
`XCTUnwrap` will fail the test case and permit the remainder of the test
suite to be processed.  This allows us to better understand the state of
the test suite coverage when porting.
  • Loading branch information
compnerd authored Jun 9, 2023
1 parent cf83a80 commit 651ee9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2548,7 +2548,7 @@ let expected = """
subdirectory: "Test Resources")!),
]).write(inside: tempURL)

let (_, _, context) = try! loadBundle(from: bundleURL)
let (_, _, context) = try XCTUnwrap(loadBundle(from: bundleURL))

// MissingDocs contains a struct that has a link to a non-existent type.
// If there are no problems, that indicates that symbol graph link
Expand Down

0 comments on commit 651ee9c

Please sign in to comment.