Commit Graph

1 Commits

Author SHA1 Message Date
4ba240c062 test: fix failing tests and expand coverage to 72.56%
All checks were successful
kinec.tech/airun-pathfinder-crud-pricing/pipeline/head This commit looks good
Fixed 3 failing tests by adding explicit serde rename attributes
to PricingOperation enum fields for camelCase JSON deserialization.

Added comprehensive test coverage:
- models.rs: 98.55% line coverage (25 -> 35 tests)
- db.rs: 73.70% line coverage (14 -> 22 tests)
- main.rs: 32.63% line coverage (0 -> 7 tests)

Total coverage improved from 56.35% to 72.56% lines.

Test additions:
- All PricingOperation variants (Get, Put, ListCommon, IncrementAccess)
- Reserved and Spot pricing serialization
- Complex pricing data with all optional fields
- Edge cases for parsing, expiration checks, and key building
- HTTP vs MCP request detection logic
- Path parameter extraction and validation

Remaining uncovered code is primarily async AWS SDK interactions
which require integration tests with mocked DynamoDB.

Generated cobertura coverage report (coverage.xml).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 19:55:33 -05:00