swift-protocol-di-testing

安装量: 7.7K
排名: #2091

安装

npx skills add https://github.com/affaan-m/ecc --skill swift-protocol-di-testing

Swift Protocol-Based Dependency Injection for Testing Patterns for making Swift code testable by abstracting external dependencies (file system, network, iCloud) behind small, focused protocols. Enables deterministic tests without I/O. When to Activate Writing Swift code that accesses file system, network, or external APIs Need to test error handling paths without triggering real failures Building modules that work across environments (app, test, SwiftUI preview) Designing testable architecture with Swift concurrency (actors, Sendable) Core Pattern 1. Define Small, Focused Protocols Each protocol handles exactly one external concern. Show more Installs 1.5K Repository affaan-m/ecc GitHub Stars 239.2K First Seen May 19, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

返回排行榜