Skip to content

Implement rapidcheck for variant spec#3

Merged
lockshaw merged 14 commits intolockshaw:dtgenfrom
yingyee0111:dtgen
May 15, 2024
Merged

Implement rapidcheck for variant spec#3
lockshaw merged 14 commits intolockshaw:dtgenfrom
yingyee0111:dtgen

Conversation

@yingyee0111
Copy link
Collaborator

@yingyee0111 yingyee0111 commented May 12, 2024

Implemented rapidcheck arbitrary generation for variant.toml files.

Variant arbitrary generators implemented as
gen::oneOf(gen::cast<std::variant<Ts...>>(gen::arbitrary<Ts>())...);


This change is Reviewable

@yingyee0111 yingyee0111 mentioned this pull request May 12, 2024
1 task
Copy link
Owner

@lockshaw lockshaw left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @yingyee0111)

@lockshaw lockshaw merged commit 8ca49a1 into lockshaw:dtgen May 15, 2024
lockshaw added a commit that referenced this pull request Jun 3, 2024
* Add basic dtgen implementation

* Add some basic e2e tests

* Add rapidcheck support

* Add fmt

* Auto-run dtgen on build, test, and cmake

* Update cpp snippets with new config module name

* Change to actually correct module name

* Add support for empty types

* Add more helpful error message in load_spec

* Blacklist build from format

* Add better error message for spec parsing failure

* Add format string specifier

* Add enum support

* Add missing __init__.py file

* Add variant generation

* Modify output filename

* Fix modified filenames

* Add out-of-date file detection

* Add ability to remove outdated files

* Add fmt feature for variants

* Fix missing return in variant format_as

* Add option to make constructors implicit

* Try alternate visit implementation

* Add additional fmt include to source code

* Also add to struct rendering

* Remove automatic utils/fmt.h inclusion

* Add linting command

* Add incremental generation

* Add missing dependency

* Add verbosity configuration

* Fix bug in test suite

* Fix build command in test project

* Make verbosity level more clear

* Fix incremental dtgen, simplify logging output

* Implement rapidcheck for variant spec (#3)

* adding rapidcheck for variant

* fixing rapidcheck for variant

* variant test

---------

Co-authored-by: Rae Wong <raewong@sapling2.stanford.edu>

* variant rapidcheck (#4)

Co-authored-by: Rae Wong <raewong@sapling2.stanford.edu>

* Fix falling back to curl to install clang-format (#5)

---------

Co-authored-by: Colin Unger <lockshaw@lockshaw.net>
Co-authored-by: Rae Wong <raewong@sapling2.stanford.edu>
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