// The dial is chrome (owner with the architect, 16 Oct 2026): the fan, the // caps arc and the record button are the app's ONE frame, written in code and // drawn on every page of every database. On the owner's phone (build 288) the // stored per-database Home board decided what the dial drew, and after a // database switch it drew only Me and Tools on every database. import CottonKit import XCTest @testable import CottonUI final class DialFrameTests: XCTestCase { private func boardSurface() throws -> String { SourceSweep.withoutComments( try SourceSweep.mustRead("apps/cotton/Sources/CottonUI/Surfaces/BoardSurface.swift", ownedBy: "dialchrome")) } /// The text of one `private var : Bool { … }` declaration. private func declaration(_ name: String, in source: String) throws -> String { let head = try XCTUnwrap(source.range(of: "private var \(name): Bool {"), "\(name) is declared") let rest = source[head.upperBound...] var depth = 1 var end = rest.startIndex for index in rest.indices { switch rest[index] { case "{": depth += 1 case "}": depth -= 1 default: break } if depth == 0 { end = index; break } } return String(rest[..