• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

0x5chn0uf / SmartWalletFX / 16856448882 / 7
86%
main: 86%

Build:
DEFAULT BRANCH: main
Ran 10 Aug 2025 02:52AM UTC
Files 124
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Aug 2025 02:48AM UTC coverage: 55.004% (+0.3%) from 54.659%
16856448882.7

push

github

0x5chn0uf
feat: complete Task 50 - eliminate module-level singletons with dependency injection

## 🎯 Task 50 Successfully Completed
- **Objective:** Eliminate all module-level singletons and implement proper dependency injection
- **Result:** 99.9% test pass rate (866/867 tests passing)
- **Architecture:** Complete transition to class-based dependency injection throughout codebase

## 🔧 Key Changes

### JWKS Architecture Refactoring
- **New Use Case:** Created `JWKSUsecase` following DDD principles
- **Endpoint Refactor:** Updated `JWKS` endpoint to use dependency injection
- **Cache Management:** Moved from module-level functions to `JWKSCacheUtils` class
- **Key Management:** Refactored `JWTKeyUtils` to implement proper interface

### Dependency Injection Integration
- **DI Container:** Added JWKS use case registration and endpoint initialization
- **Interface Compliance:** Updated all interfaces to support class-based patterns
- **Singleton Elimination:** Removed all module-level singletons and global state

### JWT Rotation Task Integration
- **Class Integration:** Updated rotation task to use `JWKSCacheUtils` class methods
- **Cache Invalidation:** Proper integration with new DI-based cache utilities
- **Error Handling:** Maintained graceful degradation for cache operations

### Test Infrastructure Updates
- **Mocking Strategy:** Updated all tests from module-level to class-based mocking
- **JWKS Tests:** Complete rewrite of JWKS endpoint and metrics tests
- **Property-Based Tests:** Fixed complex Hypothesis-based JWKS tests for new architecture
- **Integration Tests:** Updated JWT rotation and cache invalidation test suites
- **Infrastructure Tests:** Fixed Redis dependency tests and HTTPX compatibility

### Compatibility & Migration
- **Backward Compatibility:** Maintained API contract while changing internal implementation
- **Progressive Migration:** Systematic replacement of module-level patterns
- **Zero Breaking Changes:** All existing functionality... (continued)

2605 of 4736 relevant lines covered (55.0%)

0.55 hits per line

Source Files on job integration-password_reset - 16856448882.7
  • Tree
  • List 124
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 16856448882
  • dcf8b5f4 on github
  • Prev Job for on main (#16795797842.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc