import Foundation import Testing struct OnboardingDiscoveredGatewayTests { @Test func `discovered gateway surfaces diagnostic connection failures`() throws { let source = try String(contentsOf: Self.sourceURL(), encoding: .utf8) let start = try #require(source.range(of: "private func connectDiscoveredGateway(")) let end = try #require( source.range(of: "private func selectMode(", range: start.upperBound.. URL { URL(fileURLWithPath: #filePath) .deletingLastPathComponent() .deletingLastPathComponent() .appendingPathComponent("Sources/Onboarding/OnboardingWizardView.swift") } }