Skip to content

Comments

Remove confirm test helper, use test_is_true or test_is_false instead#5334

Merged
randombit merged 1 commit intomasterfrom
jack/test-h-remove-confirm
Feb 14, 2026
Merged

Remove confirm test helper, use test_is_true or test_is_false instead#5334
randombit merged 1 commit intomasterfrom
jack/test-h-remove-confirm

Conversation

@randombit
Copy link
Owner

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request removes the deprecated confirm test helper method and replaces all its usages with either test_is_true or test_is_false throughout the Botan test suite. The change improves consistency by using the more explicit test assertion methods.

Changes:

  • Removed the confirm method from Test::Result class in tests.h
  • Updated tests.cpp to use test_bool_eq instead of confirm in the require method
  • Replaced all confirm calls with test_is_true or test_is_false across numerous test files

Reviewed changes

Copilot reviewed 74 out of 74 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/tests/tests.h Removed confirm method definition and updated example documentation
src/tests/tests.cpp Changed require to use test_bool_eq instead of confirm
src/tests/unit_x509.cpp Replaced confirm with test_is_true, test_is_false, and test_not_null
src/tests/unit_tls_policy.cpp Replaced confirm with test_is_true
src/tests/unit_tls.cpp Replaced confirm with test_is_true and test_is_false
src/tests/unit_ecdsa.cpp Replaced confirm with test_is_true
src/tests/unit_asio_stream.cpp Replaced confirm with test_is_true
src/tests/test_*.cpp (numerous files) Replaced confirm with test_is_true and test_is_false

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@randombit randombit merged commit bf04d2b into master Feb 14, 2026
53 checks passed
@randombit randombit deleted the jack/test-h-remove-confirm branch February 14, 2026 18:55
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.

1 participant