mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-11-08 10:54:50 +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
467 B
Swift
14 lines
467 B
Swift
import Foundation
|
|
|
|
/// 用户主动触发的图片剪贴板 seam:以 PNG 数据为规范输入写入剪贴板。生产
|
|
/// adapter 负责平台类型映射(PNG 之外附加哪些兼容类型),协议不感知;读取
|
|
/// 侧暂无消费者,协议不设 read。分享策略与二维码生成不属于此协议。
|
|
@MainActor
|
|
protocol ImageClipboard {
|
|
func write(_ pngData: Data) throws
|
|
}
|
|
|
|
enum ImageClipboardFailure: Equatable, Error {
|
|
case writeFailed
|
|
}
|