Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
#if os(macOS)
import XCTest
@testable import CindyRemoteCredentials
final class MacUnlockProcessIdentityTests: XCTestCase {
func testKernelIdentityIsStableForCurrentProcessWithoutWorkspaceMetadata() throws {
let first = try MacUnlockProcessIdentity.read(pid: getpid(), uid: getuid())
let second = try MacUnlockProcessIdentity.read(pid: getpid(), uid: getuid())
XCTAssertEqual(first, second)
XCTAssertGreaterThan(first.seconds, 0)
}
func testDifferentOwnerOrMissingProcessCannotMatch() {
XCTAssertThrowsError(try MacUnlockProcessIdentity.read(pid: getpid(), uid: getuid() == 0 ? 1 : 0))
XCTAssertThrowsError(try MacUnlockProcessIdentity.read(pid: -1, uid: getuid()))
}
}
#endif