field_ios

In-the-field app for Radroots on iOS
git clone https://radroots.dev/git/field_ios.git
Log | Files | Refs | README | LICENSE

commit 866370aad51e78ee04abcd10d64c3f8bdb8da249
parent 029326c8cf0b15e88709d42cfedae590c8fc90fe
Author: triesap <tyson@radroots.org>
Date:   Sat,  3 Oct 2026 13:49:42 +0000

test: continue original saved persona submissions

- Select current authored submission UI after relaunch
- Verify the captured attempt before original continuation
- Require actual delivery policy completion within existing bounds
- Preserve measured persona gates and verify standalone source

Diffstat:
MTeraUITests/TeraRemoteQualificationUITests.swift | 8+-------
MTeraUITests/TeraSubmissionQualificationSupport.swift | 61++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
Mtest-fixtures/maintainability-baseline.v1.json | 2+-
Mtest-fixtures/swiftlint-maintainability-baseline.v1.json | 4++--
4 files changed, 64 insertions(+), 11 deletions(-)

diff --git a/TeraUITests/TeraRemoteQualificationUITests.swift b/TeraUITests/TeraRemoteQualificationUITests.swift @@ -837,15 +837,9 @@ final class TeraRemoteQualificationUITests: XCTestCase { guard openAdd(relaunched) != nil, openDrafts(relaunched) else { throw QualificationError.missingProductSurface } - let retry = relaunched.buttons["Retry"].firstMatch - guard retry.waitForExistence(timeout: 20) else { - XCTFail("The transport-retry draft did not expose the Retry action") + guard continueSavedPersonaSubmission(relaunched, marker: attempt.marker) else { throw QualificationError.missingProductSurface } - retry.tap() - let retryCompleted = NSPredicate { _, _ in !retry.exists || !retry.isEnabled } - let expectation = XCTNSPredicateExpectation(predicate: retryCompleted, object: relaunched) - XCTAssertEqual(XCTWaiter.wait(for: [expectation], timeout: 180), .completed) let done = relaunched.buttons["Done"] XCTAssertTrue(done.waitForExistence(timeout: 10)) done.tap() diff --git a/TeraUITests/TeraSubmissionQualificationSupport.swift b/TeraUITests/TeraSubmissionQualificationSupport.swift @@ -54,7 +54,7 @@ extension TeraRemoteQualificationUITests { @MainActor func assertDraftOutboxContainsAtLeast(_ app: XCUIApplication, count: Int) { - let sheet = app.descendants(matching: .any)["radroots.add.drafts.sheet"] + let sheet = qualificationDraftsSheet(app) let list = sheet.descendants(matching: .collectionView).firstMatch guard list.waitForExistence(timeout: 10) else { return XCTFail("The visible Drafts list was unavailable") @@ -163,6 +163,65 @@ extension TeraRemoteQualificationUITests { } @MainActor + func continueSavedPersonaSubmission(_ app: XCUIApplication, marker: String) -> Bool { + let sheet = qualificationDraftsSheet(app) + let view = sheet.buttons["View submission"].firstMatch + guard revealSavedSubmissionControl(sheet, element: view) else { return false } + view.tap() + let captured = sheet.buttons["tera.add.submission.captured"].firstMatch + guard revealSavedSubmissionControl(sheet, element: captured) else { return false } + captured.tap() + guard sheet.staticTexts[marker].waitForExistence(timeout: 20) else { + XCTFail("The saved submission must retain the exact captured attempt marker") + return false + } + let continuation = sheet.buttons["tera.add.submission.continue"] + guard revealSavedSubmissionControl(sheet, element: continuation), + continuation.waitForExistence(timeout: 20), continuation.isEnabled + else { + XCTFail("The transport-retry submission did not expose its original continuation") + return false + } + continuation.tap() + let status = sheet.staticTexts["tera.add.submission.status"] + let complete = NSPredicate { _, _ in + status.exists && status.label == "Delivery completed for the saved relay policy." + } + let expectation = XCTNSPredicateExpectation(predicate: complete, object: app) + let finished = XCTWaiter.wait(for: [expectation], timeout: 180) == .completed + XCTAssertTrue(finished, "The original saved submission did not complete its delivery policy") + return finished + } + + @MainActor + private func qualificationDraftsSheet(_ app: XCUIApplication) -> XCUIElement { + app.descendants(matching: .any)["radroots.add.drafts.sheet"] + } + + @MainActor + private func revealSavedSubmissionControl(_ sheet: XCUIElement, element: XCUIElement) -> Bool { + let list = sheet.descendants(matching: .collectionView).firstMatch + let navigation = sheet.navigationBars.firstMatch + guard list.waitForExistence(timeout: 10), navigation.exists else { return false } + for _ in 0 ..< 12 { + guard sheet.exists, list.exists else { return false } + let top = max(list.frame.minY, navigation.frame.maxY) + if element.exists, element.isHittable, element.frame.height > 0, + element.frame.minY >= top, element.frame.maxY <= list.frame.maxY + { + return true + } + let reverse = element.exists && element.frame.height > 0 && element.frame.minY < top + let start = list.coordinate(withNormalizedOffset: CGVector(dx: 0.05, dy: reverse ? 0.25 : 0.75)) + let finish = list.coordinate(withNormalizedOffset: CGVector(dx: 0.05, dy: reverse ? 0.75 : 0.25)) + start.press(forDuration: 0.05, thenDragTo: finish, + withVelocity: .slow, thenHoldForDuration: 0.3) + } + XCTFail("The saved submission control was unavailable within the bounded native viewport") + return false + } + + @MainActor func assertSavedPhotoEditing(_ app: XCUIApplication) { guard openDrafts(app) else { return XCTFail("The saved editing inventory did not open") } let reopen = app.buttons.matching( diff --git a/test-fixtures/maintainability-baseline.v1.json b/test-fixtures/maintainability-baseline.v1.json @@ -38,7 +38,7 @@ }, { "path": "TeraUITests/TeraRemoteQualificationUITests.swift", - "maximum_lines": 1951 + "maximum_lines": 1945 } ], "python_file_exception": [ diff --git a/test-fixtures/swiftlint-maintainability-baseline.v1.json b/test-fixtures/swiftlint-maintainability-baseline.v1.json @@ -1 +1 @@ -[{"violation":{"severity":"warning","reason":"Initializer body should span 50 lines or less excluding comments and whitespace: currently spans 52 lines","location":{"line":21,"file":"Tera\/App\/TeraAppModel.swift","character":3},"ruleIdentifier":"function_body_length","ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" init("},{"violation":{"severity":"error","reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 373 lines","location":{"line":31,"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","character":7},"ruleIdentifier":"type_body_length","ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraGeneratedRuntimeBackend: TeraRuntimeBackend, @unchecked Sendable {"},{"violation":{"severity":"error","reason":"File should contain 1000 lines or less: currently contains 1089","location":{"line":1089,"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","character":1},"ruleIdentifier":"file_length","ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"error","reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 675 lines","location":{"line":3,"file":"Tera\/Runtime\/TeraRuntimeClient.swift","character":1},"ruleIdentifier":"type_body_length","ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"actor TeraRuntimeClient {"},{"violation":{"severity":"warning","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 70 lines","location":{"line":353,"file":"Tera\/Runtime\/TeraRuntimeClient.swift","character":3},"ruleIdentifier":"function_body_length","ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func changes(bufferCapacity: Int = 16) async throws -> AsyncStream<TeraRuntimeChange> {"},{"violation":{"severity":"warning","reason":"File should contain 400 lines or less: currently contains 749","location":{"line":749,"file":"Tera\/Runtime\/TeraRuntimeClient.swift","character":1},"ruleIdentifier":"file_length","ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"error","reason":"File should contain 1000 lines or less: currently contains 1029","location":{"line":1029,"file":"Tera\/Runtime\/TeraRuntimeModels.swift","character":1},"ruleIdentifier":"file_length","ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"error","reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 481 lines","location":{"line":4,"file":"Tera\/State\/TeraAddStore.swift","character":7},"ruleIdentifier":"type_body_length","ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraAddStore: ObservableObject {"},{"violation":{"severity":"warning","reason":"File should contain 400 lines or less: currently contains 702","location":{"line":702,"file":"Tera\/State\/TeraAddStore.swift","character":1},"ruleIdentifier":"file_length","ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"error","reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 468 lines","location":{"line":78,"file":"Tera\/State\/TeraConfigurationStore.swift","character":1},"ruleIdentifier":"type_body_length","ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"actor TeraConfigurationStore {"},{"violation":{"severity":"error","reason":"Function body should span 100 lines or less excluding comments and whitespace: currently spans 109 lines","location":{"line":148,"file":"Tera\/State\/TeraConfigurationStore.swift","character":5},"ruleIdentifier":"function_body_length","ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func load() throws -> TeraAppConfiguration {"},{"violation":{"severity":"warning","reason":"File should contain 400 lines or less: currently contains 759","location":{"line":759,"file":"Tera\/State\/TeraConfigurationStore.swift","character":1},"ruleIdentifier":"file_length","ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"warning","reason":"Function should have complexity 10 or less; currently complexity is 13","location":{"line":96,"file":"Tera\/State\/TeraSessionStore.swift","character":11},"ruleIdentifier":"cyclomatic_complexity","ruleDescription":"Complexity of function bodies should be limited.","ruleName":"Cyclomatic Complexity"},"text":" private func start(acceptingReconfiguration: Bool) async -> TeraSessionPhase {"},{"violation":{"severity":"error","reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 607 lines","location":{"line":6,"file":"TeraTests\/TeraAddStoreTests.swift","character":7},"ruleIdentifier":"type_body_length","ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraAddStoreTests: XCTestCase {"},{"violation":{"severity":"error","reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 394 lines","location":{"line":682,"file":"TeraTests\/TeraAddStoreTests.swift","character":1},"ruleIdentifier":"type_body_length","ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"actor AddBackend: TeraRuntimeBackend {"},{"violation":{"severity":"warning","reason":"Function should have 5 parameters or less: it currently has 8","location":{"line":1020,"file":"TeraTests\/TeraAddStoreTests.swift","character":3},"ruleIdentifier":"function_parameter_count","ruleDescription":"Number of function parameters should be low.","ruleName":"Function Parameter Count"},"text":" func makeStatus("},{"violation":{"severity":"error","reason":"File should contain 1000 lines or less: currently contains 1232","location":{"line":1232,"file":"TeraTests\/TeraAddStoreTests.swift","character":1},"ruleIdentifier":"file_length","ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"warning","reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 307 lines","location":{"line":7,"file":"TeraTests\/TeraRemoteQualificationTests.swift","character":7},"ruleIdentifier":"type_body_length","ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraRemoteQualificationTests: XCTestCase {"},{"violation":{"severity":"warning","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 94 lines","location":{"line":45,"file":"TeraTests\/TeraRemoteQualificationTests.swift","character":3},"ruleIdentifier":"function_body_length","ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testQualificationRejectsAmbiguousOrUnsafeHarnessValues() {"},{"violation":{"severity":"warning","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 53 lines","location":{"line":212,"file":"TeraTests\/TeraRemoteQualificationTests.swift","character":3},"ruleIdentifier":"function_body_length","ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testAuthorizationEvidenceIsRedactedEphemeralAndRelaunchCleaned() throws {"},{"violation":{"severity":"warning","reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 298 lines","location":{"line":4,"file":"TeraTests\/TeraRuntimeClientTests.swift","character":7},"ruleIdentifier":"type_body_length","ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraRuntimeClientTests: XCTestCase {"},{"violation":{"severity":"error","reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 580 lines","location":{"line":6,"file":"TeraTests\/TeraStateMigrationTests.swift","character":7},"ruleIdentifier":"type_body_length","ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraStateMigrationTests: XCTestCase {"},{"violation":{"severity":"warning","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 61 lines","location":{"line":7,"file":"TeraTests\/TeraStateMigrationTests.swift","character":5},"ruleIdentifier":"function_body_length","ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testRelayValidationMatchesRuntimeProfiles() throws {"},{"violation":{"severity":"warning","reason":"File should contain 400 lines or less: currently contains 622","location":{"line":622,"file":"TeraTests\/TeraStateMigrationTests.swift","character":1},"ruleIdentifier":"file_length","ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"error","reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 1246 lines","location":{"line":4,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","character":7},"ruleIdentifier":"type_body_length","ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraRemoteQualificationUITests: XCTestCase {"},{"violation":{"severity":"warning","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 65 lines","location":{"line":62,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","character":3},"ruleIdentifier":"function_body_length","ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testLocalSocialFiveFlowScenario() throws {"},{"violation":{"severity":"warning","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 66 lines","location":{"line":166,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","character":3},"ruleIdentifier":"function_body_length","ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testLocalSocialDeterministicPersonas() throws {"},{"violation":{"severity":"warning","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 54 lines","location":{"line":239,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","character":3},"ruleIdentifier":"function_body_length","ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testRemoteBlossomUploadAndRecovery() throws {"},{"violation":{"severity":"warning","reason":"Function should have complexity 10 or less; currently complexity is 18","location":{"line":494,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","character":11},"ruleIdentifier":"cyclomatic_complexity","ruleDescription":"Complexity of function bodies should be limited.","ruleName":"Cyclomatic Complexity"},"text":" private func expectedAddFieldLabel(_ identifier: String, type: String) -> String {"},{"violation":{"severity":"warning","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 67 lines","location":{"line":1475,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","character":10},"ruleIdentifier":"function_body_length","ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" static func environment("},{"violation":{"severity":"error","reason":"File should contain 1000 lines or less: currently contains 1951","location":{"line":1951,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","character":1},"ruleIdentifier":"file_length","ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"}] -\ No newline at end of file +[{"text":" init(","violation":{"reason":"Initializer body should span 50 lines or less excluding comments and whitespace: currently spans 52 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"Tera\/App\/TeraAppModel.swift","line":21,"character":3},"ruleName":"Function Body Length"}},{"text":"final class TeraGeneratedRuntimeBackend: TeraRuntimeBackend, @unchecked Sendable {","violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 373 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","line":31,"character":7},"ruleName":"Type Body Length"}},{"text":"}","violation":{"reason":"File should contain 1000 lines or less: currently contains 1089","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"error","location":{"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","line":1089,"character":1},"ruleName":"File Length"}},{"text":"actor TeraRuntimeClient {","violation":{"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 675 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":3,"character":1},"ruleName":"Type Body Length"}},{"text":" func changes(bufferCapacity: Int = 16) async throws -> AsyncStream<TeraRuntimeChange> {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 70 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":353,"character":3},"ruleName":"Function Body Length"}},{"text":"}","violation":{"reason":"File should contain 400 lines or less: currently contains 749","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"warning","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":749,"character":1},"ruleName":"File Length"}},{"text":"}","violation":{"reason":"File should contain 1000 lines or less: currently contains 1029","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"error","location":{"file":"Tera\/Runtime\/TeraRuntimeModels.swift","line":1029,"character":1},"ruleName":"File Length"}},{"text":"final class TeraAddStore: ObservableObject {","violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 481 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"Tera\/State\/TeraAddStore.swift","line":4,"character":7},"ruleName":"Type Body Length"}},{"text":"}","violation":{"reason":"File should contain 400 lines or less: currently contains 702","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"warning","location":{"file":"Tera\/State\/TeraAddStore.swift","line":702,"character":1},"ruleName":"File Length"}},{"text":"actor TeraConfigurationStore {","violation":{"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 468 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":78,"character":1},"ruleName":"Type Body Length"}},{"text":" func load() throws -> TeraAppConfiguration {","violation":{"reason":"Function body should span 100 lines or less excluding comments and whitespace: currently spans 109 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"error","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":148,"character":5},"ruleName":"Function Body Length"}},{"text":"}","violation":{"reason":"File should contain 400 lines or less: currently contains 759","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"warning","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":759,"character":1},"ruleName":"File Length"}},{"text":" private func start(acceptingReconfiguration: Bool) async -> TeraSessionPhase {","violation":{"reason":"Function should have complexity 10 or less; currently complexity is 13","ruleDescription":"Complexity of function bodies should be limited.","ruleIdentifier":"cyclomatic_complexity","severity":"warning","location":{"file":"Tera\/State\/TeraSessionStore.swift","line":96,"character":11},"ruleName":"Cyclomatic Complexity"}},{"text":"final class TeraAddStoreTests: XCTestCase {","violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 607 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":6,"character":7},"ruleName":"Type Body Length"}},{"text":"actor AddBackend: TeraRuntimeBackend {","violation":{"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 394 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":682,"character":1},"ruleName":"Type Body Length"}},{"text":" func makeStatus(","violation":{"reason":"Function should have 5 parameters or less: it currently has 8","ruleDescription":"Number of function parameters should be low.","ruleIdentifier":"function_parameter_count","severity":"warning","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":1020,"character":3},"ruleName":"Function Parameter Count"}},{"text":"}","violation":{"reason":"File should contain 1000 lines or less: currently contains 1232","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"error","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":1232,"character":1},"ruleName":"File Length"}},{"text":"final class TeraRemoteQualificationTests: XCTestCase {","violation":{"reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 307 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"warning","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":7,"character":7},"ruleName":"Type Body Length"}},{"text":" func testQualificationRejectsAmbiguousOrUnsafeHarnessValues() {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 94 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":45,"character":3},"ruleName":"Function Body Length"}},{"text":" func testAuthorizationEvidenceIsRedactedEphemeralAndRelaunchCleaned() throws {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 53 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":212,"character":3},"ruleName":"Function Body Length"}},{"text":"final class TeraRuntimeClientTests: XCTestCase {","violation":{"reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 298 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"warning","location":{"file":"TeraTests\/TeraRuntimeClientTests.swift","line":4,"character":7},"ruleName":"Type Body Length"}},{"text":"final class TeraStateMigrationTests: XCTestCase {","violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 580 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":6,"character":7},"ruleName":"Type Body Length"}},{"text":" func testRelayValidationMatchesRuntimeProfiles() throws {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 61 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":7,"character":5},"ruleName":"Function Body Length"}},{"text":"}","violation":{"reason":"File should contain 400 lines or less: currently contains 622","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"warning","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":622,"character":1},"ruleName":"File Length"}},{"text":"final class TeraRemoteQualificationUITests: XCTestCase {","violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 1240 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":4,"character":7},"ruleName":"Type Body Length"}},{"text":" func testLocalSocialFiveFlowScenario() throws {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 65 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":62,"character":3},"ruleName":"Function Body Length"}},{"text":" func testLocalSocialDeterministicPersonas() throws {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 66 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":166,"character":3},"ruleName":"Function Body Length"}},{"text":" func testRemoteBlossomUploadAndRecovery() throws {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 54 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":239,"character":3},"ruleName":"Function Body Length"}},{"text":" private func expectedAddFieldLabel(_ identifier: String, type: String) -> String {","violation":{"reason":"Function should have complexity 10 or less; currently complexity is 18","ruleDescription":"Complexity of function bodies should be limited.","ruleIdentifier":"cyclomatic_complexity","severity":"warning","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":494,"character":11},"ruleName":"Cyclomatic Complexity"}},{"text":" static func environment(","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 67 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":1469,"character":10},"ruleName":"Function Body Length"}},{"text":"}","violation":{"reason":"File should contain 1000 lines or less: currently contains 1945","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"error","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":1945,"character":1},"ruleName":"File Length"}}] +\ No newline at end of file