import XCTest @testable import CottonUI final class NativeSettingsOwnershipTests: XCTestCase { static func publishedTables() throws -> Set { let core = SourceSweep.withoutComments(try SourceSweep.mustRead( "crates/cotton-core/src/definitions/mod.rs", ownedBy: "native Settings table manifest")) let declaration = try XCTUnwrap(core.range(of: #"\b(?:const|static)\s+SETTINGS_RECORD_TABLES\b[^=]*=\s*&?\["#, options: .regularExpression)) let end = try XCTUnwrap(core.range(of: "];", range: declaration.upperBound..