[TLS 1.3] Add a "consolidation c'tor" for Test::Result#2967
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2967 +/- ##
==========================================
- Coverage 92.56% 92.55% -0.02%
==========================================
Files 577 577
Lines 66736 66739 +3
Branches 6384 6386 +2
==========================================
- Hits 61777 61767 -10
- Misses 4926 4939 +13
Partials 33 33
Continue to review full report at Codecov.
|
|
For reference, a realistic failure in a downstream The error was happening while developing this test case: botan/src/tests/test_tls_rfc8448.cpp Line 815 in 3abfc13 |
|
Seems kind of hackish but I don't have an immediate suggestion on improvement and I do see the need for this functionality, so I'm fine with this PR as is. |
Yep, indeed the solution is hacky. I'll keep a reference of it in the "modernize test framework" discussion thread: #2883 (comment) This PR was a "draft pull request" until a minute ago. Please approve or merge. :) |
This is somewhat a request for comment in the hope to iterate towards a better solution.
For the RFC 8448 based test in the main TLS pull request, I would like to use the new
CHECKhelper to structure sub sections of individual tests. Furthermore, I want to useText_Based_Teststo store the transcript records of RFC 8448.Now, using
CHECKresults in a vector ofTest::Resultobjects butText_Based_Tests::run_one_testexpects a singleTest::Resultas return value. Hence, I added a "consolidation constructor" to somewhat merge the fine grained downstreamTest::Resultobjects into a singleTest::Resultto return into the test framework. I'm not super happy with this approach, as I'm not sure whether it swallows vital failure information that might make test debugging harder.