gmock: Make nice behavior the default, offer an API to adjust it

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • Programmability 2026-01-05
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Set the default_mock_behavior gmock flag to 2 (0 is nice, 1 is naggy, 2 is strict) prior to calling init. Consider having a listener look for the failure from calling an "uninteresting" method and throw (either a dedicated DBException code or testing::AssertionException rather than returning a default-constructed value. 

            Assignee:
            Billy Donahue
            Reporter:
            Alex Li
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: