Skip to content

V0.5.1#4

Open
irammini wants to merge 9 commits into
mainfrom
0.5.1
Open

V0.5.1#4
irammini wants to merge 9 commits into
mainfrom
0.5.1

Conversation

@irammini

Copy link
Copy Markdown
Member

No description provided.

…elimit)

Added unit tests to cover high-priority areas:
- pkg/handlers: Tests for signature validation, option parsing, and security checks.
- pkg/processor: Tests for format conversion, resizing, and effects.
- pkg/cache: Tests for TieredCache logic (L1/L2 hits/misses).
- pkg/ratelimit: Tests for MemoryLimiter logic.

Note: Processor and Handler tests may require libvips-dev to run, which is not available in the current CI environment. Verification relied on static analysis for these parts.
- Added 	ests/integration_test.sh for Security, Transformation, Caching, and Resilience scenarios.
- Added 	ests/mock_s3.go and 	ests/sign_url.go helpers.
- Updated .github/workflows/ci.yml to execute the integration test suite in the build job.
@irammini

irammini commented Feb 3, 2026

Copy link
Copy Markdown
Member Author

In this commit:

  • pkg/processor: Added tests for Resize Contain, PDF Flattening, Font Sanitization, and Palette Extraction.
  • pkg/processor: Added SmartCrop tests using MockDetector for detector usage and fallback logic.
  • pkg/cache: Added TestTieredCache_Promote_L2_to_L1 to verify read-through behavior.
  • pkg/config: Added tests for AllowedCIDRs parsing and default values.
  • pkg/watermark: Added TestWatermarkManager_HotReload to verify hot reloading logic.

Comment thread .github/workflows/mirror.yml Dismissed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants