bloomberg/bonobomock

A GoogleTest-compatible C++ mocking library using monkey patching to mock free functions, static functions, and virtual/non-virtual class methods.

C++

18

2 commits

updated Sep 9, 2026

See the code

README

BonoboMock mascot


BonoboMock is a GoogleTest-compatible mock library for C++. Unlike traditional mocking frameworks that require virtual interfaces, BonoboMock can mock virtually any type of C++ function, including:

  • Free (global) functions (including extern "C" functions)
  • Static member functions
  • Non-virtual member functions
  • Virtual member functions
  • Protected member functions
  • Private member functions
  • Overloaded and template functions
  • Variadic functions (in C++11 or newer)
  • Lambda functions (in C++11 or newer)

Documentation

Review the project documentation for quickstart guides, cookbook recipes, and API references.

Contributions

We welcome your contributions to help us improve and extend this project!

We welcome issue reports here; be sure to choose the proper template for your issue, so that we can be sure you're providing us with the necessary information to troubleshoot properly.

Before sending a Pull Request, please make sure you have read our Contribution Guidelines.

License

BonoboMock is Apache 2.0 licensed, as found in the LICENSE file.

Code of Conduct

This project has adopted a Code of Conduct. If you have any concerns about the Code, or behavior which you have experienced in the project, please contact us at opensource@bloomberg.net.

Governance

Project decisions are made according to the process defined in our Governance Policy. All changes require maintainer review and open community discussion.

Maintainers

See the current list of Project Maintainers for information on roles, responsibilities, and contact points.

Security Vulnerability Reporting

If you believe you have identified a security vulnerability in this project, please send an email to the project team at opensource@bloomberg.net, detailing the suspected issue and any methods you've found to reproduce it.

Please do NOT open an issue in the GitHub repository, as we'd prefer to keep vulnerability reports private until we've had an opportunity to review and address them.

Contributors

i1uxaermakov

1 commits

zrfwd

1 commits

bloomberg/bonobomock

A GoogleTest-compatible C++ mocking library using monkey patching to mock free functions, static functions, and virtual/non-virtual class methods.

C++

18

2 commits

updated Sep 9, 2026

See the code

README

BonoboMock mascot


BonoboMock is a GoogleTest-compatible mock library for C++. Unlike traditional mocking frameworks that require virtual interfaces, BonoboMock can mock virtually any type of C++ function, including:

  • Free (global) functions (including extern "C" functions)
  • Static member functions
  • Non-virtual member functions
  • Virtual member functions
  • Protected member functions
  • Private member functions
  • Overloaded and template functions
  • Variadic functions (in C++11 or newer)
  • Lambda functions (in C++11 or newer)

Documentation

Review the project documentation for quickstart guides, cookbook recipes, and API references.

Contributions

We welcome your contributions to help us improve and extend this project!

We welcome issue reports here; be sure to choose the proper template for your issue, so that we can be sure you're providing us with the necessary information to troubleshoot properly.

Before sending a Pull Request, please make sure you have read our Contribution Guidelines.

License

BonoboMock is Apache 2.0 licensed, as found in the LICENSE file.

Code of Conduct

This project has adopted a Code of Conduct. If you have any concerns about the Code, or behavior which you have experienced in the project, please contact us at opensource@bloomberg.net.

Governance

Project decisions are made according to the process defined in our Governance Policy. All changes require maintainer review and open community discussion.

Maintainers

See the current list of Project Maintainers for information on roles, responsibilities, and contact points.

Security Vulnerability Reporting

If you believe you have identified a security vulnerability in this project, please send an email to the project team at opensource@bloomberg.net, detailing the suspected issue and any methods you've found to reproduce it.

Please do NOT open an issue in the GitHub repository, as we'd prefer to keep vulnerability reports private until we've had an opportunity to review and address them.

Contributors

i1uxaermakov

1 commits

zrfwd

1 commits

Languages

C++

94.2%

CMake

4.3%