This skill provides standardized patterns for decoupling Swift applications from external side effects like the file system, network, and hardware APIs through protocol-based dependency injection. It guides developers in creating focused protocols, default production implementations, and deterministic mock objects compatible with the modern Swift Testing framework. By emphasizing Swift concurrency safety (Sendable and actors) and lean protocol design, it ensures code remains modular, maintainable, and verifiable across different environments such as unit tests, integration tests, and SwiftUI previews.
主な機能
01Default parameter patterns for seamless production/test switching
02Swift Testing integration for error and success paths
03Deterministic mock implementations for I/O operations
040 GitHub stars
05Standardized protocol-based abstraction patterns
06Concurrency-safe dependency injection using Sendable