import XCTest @testable import CottonKit final class FlavourOverrideTests: XCTestCase { private let manifest = FlavourManifest( flavour: "sharmila", name: "Synthetic Studio", databases: .single, home: nil, business: BusinessAddress(server: "https://cotton-business.synthetic.workers.dev", slug: "synthetic-studio")) /// RULE: A device build never takes the simulator's business override: the launch arguments that point a walk at a synthetic business served on the Mac are read only inside `#if targetEnvironment(simulator)`, in `FlavourManifest.swift` alone, and the device branch returns the bundle's manifest unchanged — a phone in a person's hand reaches only the object the business's manifest names. func testADeviceBuildNeverTakesTheSimulatorOverride() throws { let source = SourceSweep.withoutComments( try SourceSweep.mustRead("apps/cotton/Sources/CottonKit/FlavourManifest.swift", ownedBy: "shell3")) let open = try XCTUnwrap(source.range(of: "#if targetEnvironment(simulator)"), "the override is not simulator-only") let otherwise = try XCTUnwrap(source.range(of: "#else", range: open.upperBound..