swift-protocol-di-testing
Patterns for testable Swift code using protocol-based dependency injection and mocks for external dependencies.
Install
npx skills add https://github.com/affaan-m/everything-claude-code --skill swift-protocol-di-testingStats
| Total installs | 1,125 |
| Weekly installs | 1.1K |
| GitHub stars | 112.5K |
| First seen | Feb 17, 2026 |
| Source | @affaan-m/everything-claude-code |
Summary
- Define small, single-responsibility protocols for each external concern (file system, network, APIs) and provide default production implementations
- Create mock implementations with configurable error properties to test failure paths deterministically without real I/O
- Inject dependencies via default parameters so production code uses real implementations automatically while tests override with mocks
- Ensure Sendable conformance on protocols and mocks for safe use across actor boundaries in Swift concurrency
Tags
Related skills
| Skill | Installs | vs swift-protocol-di-testing |
|---|---|---|
| flutter-app-size | 1,003 | -122 |
| flutter-testing | 1,024 | -101 |
| angular-architect | 1,157 | +32 |
| ralph-loop | 1,016 | -109 |
| ruzzy | 1,155 | +30 |
FAQ
- How many installs does swift-protocol-di-testing have?
- swift-protocol-di-testing has 1,125 total installs and 1.1K installs this week.
- Where is swift-protocol-di-testing hosted?
- swift-protocol-di-testing is published by @affaan-m/everything-claude-code at https://github.com/affaan-m/everything-claude-code.
- How many GitHub stars does swift-protocol-di-testing have?
- swift-protocol-di-testing has 112.5K GitHub stars.
- When was swift-protocol-di-testing first indexed?
- OrangeBot.AI first indexed swift-protocol-di-testing on Feb 17, 2026.
- How do I install swift-protocol-di-testing?
- Run: npx skills add https://github.com/affaan-m/everything-claude-code --skill swift-protocol-di-testing