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

Collections: Add contract usage #2796

Open
wants to merge 85 commits into
base: master
Choose a base branch
from

Conversation

Delja
Copy link
Contributor

@Delja Delja commented Sep 30, 2019

This pr add contract usage in lib/core/collection. All assert that was used as a pre-post condition are replaced by contracts expects ensures.

@Delja Delja force-pushed the collections_contract branch from e45d35b to a117432 Compare October 1, 2019 14:30
@Delja Delja force-pushed the collections_contract branch 2 times, most recently from 4b30899 to ada9853 Compare October 24, 2019 17:18
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
@Delja Delja force-pushed the collections_contract branch from ada9853 to 244dd06 Compare October 24, 2019 20:43
@Delja Delja force-pushed the collections_contract branch from 6267159 to 29c4b26 Compare December 6, 2019 03:41
@Delja Delja force-pushed the collections_contract branch from 29c4b26 to 530b9aa Compare January 24, 2020 18:48
Delja added 8 commits May 27, 2020 16:17
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Deactivation of contracts on the collection wrapper. Contracts on real_collection are always applied.

Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
@Delja Delja force-pushed the collections_contract branch from 530b9aa to 2c3d586 Compare May 27, 2020 20:18
@Delja Delja requested a review from privat May 28, 2020 17:29
Delja added 4 commits July 14, 2020 12:21
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Improve comment to be more explicit of the purpose of `mcontract_facet`

Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Delja added 27 commits September 3, 2020 17:47
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Improve comment to be more explicit of the purpose of `mcontract_facet`

Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Move the contract options in the appropriate module contract

Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Update man page to add `--in-out-invariant` option

Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Added a parameter to provide the type of receiver rather than using the intro type of the property

Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
replace the parameter to take care of the invariant

Signed-off-by: Delja <deljarry.florian@gmail.com>
Add --all-ensure, --all-expect, --all-invariant, --true-contract

Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
Signed-off-by: Delja <deljarry.florian@gmail.com>
@Delja Delja force-pushed the collections_contract branch from 43f4e57 to c15a931 Compare September 6, 2020 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant