Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
- Handle stackFrames to threads change
  • Loading branch information
SMickelsn committed Dec 19, 2024
1 parent 02da988 commit 6414660
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ class CrashTests: XCTestCase {
XCTAssertEqual(crashReport!.attributes["crash.freeDiskSpace"]?.description, "628.03 GB")
XCTAssertEqual(crashReport!.attributes["crash.freeMemory"]?.description, "31.88 GB")
XCTAssertEqual(crashReport!.attributes["crash.app.version"]?.description, "1.0")
XCTAssertNotNil(crashReport!.attributes["exception.stackFrames"])
XCTAssertTrue(crashReport!.attributes["exception.stackFrames"]?.description.contains("threadNumber") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.stackFrames"]?.description.contains("crashed") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.stackFrames"]?.description.contains("instructionPointer") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.stackFrames"]?.description.contains("baseAddress") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.stackFrames"]?.description.contains("imageName") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.stackFrames"]?.description.contains("offset") ?? false)
XCTAssertNotNil(crashReport!.attributes["exception.threads"])
XCTAssertTrue(crashReport!.attributes["exception.threads"]?.description.contains("threadNumber") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.threads"]?.description.contains("crashed") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.threads"]?.description.contains("instructionPointer") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.threads"]?.description.contains("baseAddress") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.threads"]?.description.contains("imageName") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.threads"]?.description.contains("offset") ?? false)
XCTAssertNotNil(crashReport!.attributes["exception.images"])
XCTAssertTrue(crashReport!.attributes["exception.images"]?.description.contains("imageUUID") ?? false)
XCTAssertTrue(crashReport!.attributes["exception.images"]?.description.contains("imageSize") ?? false)
Expand Down

0 comments on commit 6414660

Please sign in to comment.