[SERVER-14526] Introduce unittest macros that allow inspecting the exception thrown in ASSERT_THROWS. Created: 10/Jul/14  Updated: 11/Jul/16  Resolved: 14/Jul/14

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.7.4

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Two new macros, ASSERT_THROWS_WHAT and ASSERT_THROWS_PRED allow checking the thrown exception for a specific what() string or arbitrary predicate, respectively.



 Comments   
Comment by Githook User [ 14/Jul/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-14526 Introduce ASSERT_THROWS_WHAT and ASSERT_THROWS_PRED to the unittest framework.
Branch: master
https://github.com/mongodb/mongo/commit/eebd60e8f6a531fa974f93a396b73dbfdbe695cd

Generated at Thu Feb 08 03:35:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.