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

accept_message #2141

Open
3 tasks
Tracked by #2183
bdemann opened this issue Sep 23, 2024 · 0 comments
Open
3 tasks
Tracked by #2183

accept_message #2141

bdemann opened this issue Sep 23, 2024 · 0 comments
Milestone

Comments

@bdemann
Copy link
Member

bdemann commented Sep 23, 2024

For accept message it has two (kind of three) things that it does

  • if called from inspect message the call will go through
  • if not called form inspect message the call will not go through
  • if called outside of inspect message the canister will trap

So we just need to tests that it does that.

So we make a canister with four methods, two queries, two updates, one of each will be do something simple like just return the input value, the other ones will call accept message and we will make sure that they trap.

If the input to those methods is a number we could have the inspect message be something simple like if the parameter is odd then reject, if it's even then accept. Then we get a smattering of calls that will accept, and a smattering that will reject. We call the methods that call accept once each to make sure they trap and then we call it a day.

@bdemann bdemann added this to the 1.0 milestone Sep 23, 2024
@bdemann bdemann mentioned this issue Oct 18, 2024
4 tasks
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

No branches or pull requests

1 participant