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

Generating data for mailbox based on context #21

Open
EarlPitts opened this issue Dec 4, 2023 · 0 comments
Open

Generating data for mailbox based on context #21

EarlPitts opened this issue Dec 4, 2023 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@EarlPitts
Copy link
Collaborator

Currently, data is generated in a completely random fashion for filling up the mailbox of the tested process.
This can be seen here:
https://github.com/harp-project/EquivcheckEr/blob/b33fe40b411beb7ca7c3fc541b013f4d8c5f8ae5/src/pt.erl#L83C7-L83C7
When we do the parse transform, we use PropEr with the any() type.
It's not hard to imagine that the process will not match on any of the generated data in the receive block, which will result in a timeout when comparing their return values.
A better solution would be to use the context of the receive block to guess the structure of that data, and only send messages that have the same structure.

@EarlPitts EarlPitts added enhancement New feature or request question Further information is requested labels Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant