Implement session cache upgrade phase 1 foundation

This commit is contained in:
2026-03-20 08:35:37 +01:00
parent 41199cb9bc
commit e98e5fd88b
14 changed files with 552 additions and 34 deletions

View File

@@ -0,0 +1,18 @@
import XCTest
@testable import MLX_Server
final class CancellationTokenTests: XCTestCase {
func testStartsNotCancelled() {
let token = CancellationToken()
XCTAssertFalse(token.isCancelled)
}
func testCancelSetsFlag() {
let token = CancellationToken()
token.cancel()
XCTAssertTrue(token.isCancelled)
}
}