tests: Check for expected return values when calling functions returning a success code #15214

pull practicalswift wants to merge 3 commits into bitcoin:master from practicalswift:check-return-values-in-tests changing 10 files +47 −32
  1. practicalswift commented at 1:21 PM on January 20, 2019: contributor
    • Improve tests by checking for expected return values
    • Warn on discarded return values ([[noreturn]]) for important functions
    • Explicitly cast to void to document where we are intentionally discarding return values
  2. fanquake added the label Refactoring on Jan 20, 2019
  3. fanquake added the label Tests on Jan 20, 2019
  4. practicalswift renamed this:
    Improve tests by checking for expected return values
    tests: Check for expected return values when calling functions returning a success code
    on Jan 20, 2019
  5. practicalswift force-pushed on Jan 20, 2019
  6. practicalswift force-pushed on Jan 20, 2019
  7. DrahtBot commented at 2:52 PM on January 20, 2019: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #15452 (Replace CScriptID and CKeyID in CTxDestination with dedicated types by instagibbs)
    • #13062 (Make script interpreter independent from storage type CScript by sipa)
    • #10729 (Wrap EvalScript in a ScriptExecution class by luke-jr)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  8. practicalswift force-pushed on Jan 20, 2019
  9. practicalswift force-pushed on Jan 20, 2019
  10. practicalswift force-pushed on Jan 20, 2019
  11. DrahtBot added the label Needs rebase on Feb 14, 2019
  12. Improve tests by checking for expected return values 6b9ef98d94
  13. Warn on discarded return values ([[noreturn]]) 64cb79d742
  14. Explicitly cast to void to document where we are intentionally discarding return values cfdc9a7326
  15. practicalswift force-pushed on Feb 15, 2019
  16. DrahtBot removed the label Needs rebase on Feb 15, 2019
  17. practicalswift closed this on Feb 28, 2019

  18. practicalswift deleted the branch on Apr 10, 2021
  19. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me