| Crates.io | proptest-semver |
| lib.rs | proptest-semver |
| version | 0.1.2 |
| created_at | 2025-03-03 02:31:41.907136+00 |
| updated_at | 2025-03-07 02:48:29.827763+00 |
| description | Property Testing implementations for Semantic Versioning |
| homepage | https://github.com/canardleteer/proptest-semver |
| repository | https://github.com/canardleteer/proptest-semver |
| max_upload_size | |
| id | 1575052 |
| size | 57,665 |
Property Testing implementations for Semantic Versioning
This crate is generally meant for doing property testing on Semantic Versioning 2.0.0. While working on sem-tool, I found I needed to add "way too much" for property testing, so broke out this crate instead.
While we can generally generate String to be parsed, we also take advantage of
the semver crate, as that's a common choice
for Rust developers, and provide support for it. In particular, we support
generation of valid String for
semver::VersionReq
(as well as sub-components).
semver::VersionReq
is divergent from the String Parsing route, so I offer both routes of
creation.
arb_*_semver_* patterned functions will take a "pure" semver creation
approach.
String, and attempt to parse()
a semver object out of it.
parse() route.sem-tool.prop_compose! for public methods.release-plz pipeline