mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-11-08 11:14:51 +00:00
Three tests claimed coverage they could not deliver: - subscription URL credential cleanup asserted a lookup derived from the already-empty subscription list, so it held even on a leak; production has no separate URL credential store (SubscriptionRecord.url is a plain field) - the runtime log event sweep planted no secret values, so its secret half could never fail; keep the live JSON-dump check and rename the test to match - clipboard and QR saver tests exercised only in-memory doubles that live in production source and have no other caller; delete the six tests and the three doubles (AppKit adapters stay untested, as before) Co-Authored-By: DeepSeek Harness <noreply@deepseek.com>
14 lines
396 B
Swift
14 lines
396 B
Swift
import Foundation
|
|
|
|
/// 用户主动触发的纯文本剪贴板 seam。读取不到文本是正常的空状态;只有写入
|
|
/// 失败才产生 typed failure。URI 解析、分享策略与敏感信息判断不属于此协议。
|
|
@MainActor
|
|
protocol TextClipboard {
|
|
func read() -> String?
|
|
func write(_ text: String) throws
|
|
}
|
|
|
|
enum TextClipboardFailure: Equatable, Error {
|
|
case writeFailed
|
|
}
|