[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: |