Sync source edition with VCC Plus 3.7.0 build 63
This commit is contained in:
1 parent
c652a5276d
commit
b2ecec4d87
86 files changed
+10519
-472
No files matched your search
@@ -164,6 +164,22 @@ final class BASICReferenceTests: XCTestCase {
|
||||
XCTAssertFalse(content.allowsExternalReference(URL(fileURLWithPath: "/tmp/private.txt")))
|
||||
}
|
||||
|
||||
func testOverlayContractIsDiscoverableAndReadableThroughTheBundledMCPIndex() async throws {
|
||||
try requireFullManualEdition()
|
||||
let products = Bundle(for: Self.self).bundleURL.deletingLastPathComponent()
|
||||
let app = try XCTUnwrap(Bundle(url: products.appendingPathComponent("VCC Plus OSS.app")))
|
||||
let root = try XCTUnwrap(app.url(forResource: "ManualLibrary", withExtension: nil))
|
||||
let index = MCPHelpIndex(root: root)
|
||||
let hits = try await index.search("overlayGroups")
|
||||
let hit = try XCTUnwrap(hits.first { $0.id.hasSuffix("#verified-physical-code-overlays") })
|
||||
let read = try await index.read(hit.id)
|
||||
let topic = try XCTUnwrap(read)
|
||||
for field in ["banked_debug_manifest_versions", "verified_code_overlays", "overlayGroups", "residency_fingerprint"] {
|
||||
XCTAssertTrue(topic.text.contains(field), field)
|
||||
}
|
||||
XCTAssertLessThanOrEqual(topic.text.utf8.count, 12 * 1024, "The complete contract must fit a read_topic response")
|
||||
}
|
||||
|
||||
func testOriginalToolReferencesAreReadableThroughTheNativeMCPIndex() async throws {
|
||||
try requireFullManualEdition()
|
||||
let products = Bundle(for: Self.self).bundleURL.deletingLastPathComponent()
|
||||
|
||||
Reference in new issue
Block a user