Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move time proptest generators into their own crate #829

Merged
merged 8 commits into from
Mar 22, 2021

Conversation

shonfeder
Copy link
Contributor

Closes #828

This allows us to use the timestamp and DateTime generators in any other
crate in our workspace. It should help advance #822 and #821.


  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG.md

Closes #828

This allows us to use the timestamp and DateTime generators in any other
crate in our workspace. It should help advance #822 and #821.
@shonfeder
Copy link
Contributor Author

Tagging in @Shivani912 for review since I think this might help with code reuse in ongoing work?

Copy link
Contributor

@Shivani912 Shivani912 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @shonfeder ! It's great we now have a crate for this. I was indeed looking forward to it :))

I have one small comment, otherwise looks good to me!

pbt-gen/src/time.rs Outdated Show resolved Hide resolved
Shivani912
Shivani912 previously approved these changes Mar 17, 2021
Copy link
Contributor

@thanethomson thanethomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple of minor comments. I think having this as a separate crate is a great idea! 👍

pbt-gen/Cargo.toml Outdated Show resolved Hide resolved
pbt-gen/src/time.rs Outdated Show resolved Hide resolved
pbt-gen/src/time.rs Outdated Show resolved Hide resolved
pbt-gen/Cargo.toml Outdated Show resolved Hide resolved
Co-authored-by: Thane Thomson <thane@informal.systems>
Shon Feder and others added 2 commits March 17, 2021 16:26
Co-authored-by: Thane Thomson <thane@informal.systems>
pbt-gen/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@thanethomson thanethomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@thanethomson thanethomson merged commit a0a59b3 into master Mar 22, 2021
@thanethomson thanethomson deleted the shon/pbt-gen-crate branch March 22, 2021 00:00
thanethomson added a commit that referenced this pull request Mar 30, 2021
* Move time proptest generators into their own crate

Closes #828

This allows us to use the timestamp and DateTime generators in any other
crate in our workspace. It should help advance #822 and #821.

* Fix clippy warning

* Correct documentation example

* Update pbt-gen/src/time.rs

Co-authored-by: Thane Thomson <thane@informal.systems>

* Update pbt-gen/src/time.rs

Co-authored-by: Thane Thomson <thane@informal.systems>

* Fix typos in pbt-gen/Cargo.toml

* Rename pbt-gen crate and guard modules with feature

* Correct wording

Co-authored-by: Thane Thomson <thane@informal.systems>
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.

Create a crate for PBT combinators
5 participants