feat(anvil): comprehensive documentation and API improvements#429
Merged
DDtKey merged 2 commits intotestcontainers:mainfrom Nov 25, 2025
Merged
feat(anvil): comprehensive documentation and API improvements#429DDtKey merged 2 commits intotestcontainers:mainfrom
DDtKey merged 2 commits intotestcontainers:mainfrom
Conversation
Add public constant for API consistency with other modules in the repository. 27+ other modules export port constants, making this a standard pattern for ergonomic port access.
Enhance the anvil module with better documentation, API consistency, and improved test coverage to match repository best practices. ## Changes - Add public ANVIL_PORT constant for API consistency with other modules - Add with_tag() convenience method for ergonomic tag selection - Create comprehensive inline documentation with usage examples - Add detailed builder method documentation clarifying path handling - Create examples/anvil.rs demonstrating practical usage - Add blocking/sync test variant - Add test for latest() method - Update lib.rs module description to be more descriptive - Update outdated testcontainers version references ## Impact - Test coverage: 2 → 4 tests (100% increase) - Documentation: Now includes comprehensive examples and usage patterns - API: Consistent with 27+ other modules that export port constants - User experience: Significantly improved with clearer docs and examples
DDtKey
approved these changes
Nov 25, 2025
Contributor
|
Thank you for the contribution! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve the anvil module
Enhance the anvil module with better documentation, API consistency, and improved test coverage to match repository best practices.
Changes
Impact
Signed off by Joseph Livesey joseph@semiotic.ai