E-Ink News Daily

Back to list

bonobomock: A GoogleTest-compatible C++ mocking library

Bloomberg released BonoboMock, a GoogleTest-compatible C++ mocking library that uses monkey patching to mock free functions, static functions, and virtual/non-virtual class methods—capabilities beyond traditional mocking frameworks that require virtual interfaces.

Background

C++ mocking frameworks like GoogleMock require virtual methods for mocking, limiting their use on legacy or third-party code. This release from Bloomberg aims to fill that gap with a more flexible approach.

Source
Lobsters
Published
Sep 18, 2026 at 04:06 AM
Score
6.0 / 10