Skip to content

SC: Add comprehensive tests using test-contracts in C++ #1651

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

Merged
merged 8 commits into from
Jul 6, 2025

Conversation

linh2931
Copy link
Member

@linh2931 linh2931 commented Jun 25, 2025

  • Improved the test infrastructure to further simplify writing tests using test-contracts in C++.
  • Added more tests:
    1. a sequence of sync calls
    2. nested sync calls
    3. sync call to the same receiver
    4. recursive sync calls under config::default_max_sync_call_depth
    5. recursive sync calls over config::default_max_sync_call_depth
    6. sync calls without return values
    7. sync calls without parameters
    8. sync calls without parameters and return values
    9. sync calls made on unknown receivers
    10. the called function not tagged by call
    11. the called function tagged by call and action
    12. the called function stuck in infinite loop
    13. the called function crashes
    14. the call wrapper does not exist
    15. a sync call inserting a record into a table
    16. a sync call reading a record from a table
    17. a read only sync call

Resolves #1615

The test contracts were compiled by the latest CDT branch call_abi in PR AntelopeIO/cdt#353

@linh2931 linh2931 requested review from heifner and spoonincode June 25, 2025 15:38
@linh2931 linh2931 linked an issue Jun 25, 2025 that may be closed by this pull request
@linh2931 linh2931 merged commit 7b7e4a3 into sync_call Jul 6, 2025
28 checks passed
@linh2931 linh2931 deleted the new_tests branch July 6, 2025 18:35
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.

SC: Comprehensive tests using C++ test contracts
3 participants