Introduce unittest macros that allow inspecting the exception thrown in ASSERT_THROWS.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.7.4
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

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

            Assignee:
            Andy Schwerin
            Reporter:
            Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: