![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.10.9006 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | humble |
Last Updated | 2024-07-26 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Audrow Nash
Authors
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
gMock:
- provides a declarative syntax for defining mocks,
- can define partial (hybrid) mocks, which are a cross of real and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay needed),
- allows arbitrary (partial) ordering constraints on function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Details and examples can be found here:
Please note that code under scripts/generator/ is from the cppclean project and under the Apache License, which is different from Google Mock’s license.
Google Mock is a part of Google Test C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
beluga_system_tests | |
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.14.9000 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | jazzy |
Last Updated | 2024-02-09 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Scott K Logan
Authors
- Audrow Nash
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
It is designed with C++’s specifics in mind.
gMock:
- Provides a declarative syntax for defining mocks.
- Can define partial (hybrid) mocks, which are a cross of real and mock objects.
- Handles functions of arbitrary types and overloaded functions.
- Comes with a rich set of matchers for validating function arguments.
- Uses an intuitive syntax for controlling the behavior of a mock.
- Does automatic verification of expectations (no record-and-replay needed).
- Allows arbitrary (partial) ordering constraints on function calls to be expressed.
- Lets a user extend it by defining new matchers and actions.
- Does not use exceptions.
- Is easy to learn and use.
Details and examples can be found here:
GoogleMock is a part of GoogleTest C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
beluga_system_tests | |
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.15.1 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | kilted |
Last Updated | 2025-04-18 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Scott K Logan
Authors
- Audrow Nash
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
It is designed with C++’s specifics in mind.
gMock:
- Provides a declarative syntax for defining mocks.
- Can define partial (hybrid) mocks, which are a cross of real and mock objects.
- Handles functions of arbitrary types and overloaded functions.
- Comes with a rich set of matchers for validating function arguments.
- Uses an intuitive syntax for controlling the behavior of a mock.
- Does automatic verification of expectations (no record-and-replay needed).
- Allows arbitrary (partial) ordering constraints on function calls to be expressed.
- Lets a user extend it by defining new matchers and actions.
- Does not use exceptions.
- Is easy to learn and use.
Details and examples can be found here:
GoogleMock is a part of GoogleTest C++ testing framework and a subject to the same requirements.
Changelog for package gmock_vendor
1.15.1 (2025-04-18)
- Bump minimum CMake version to 3.15 (#31)
- Contributors: mosfet80
1.15.0 (2024-04-26)
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.16.0 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | rolling |
Last Updated | 2025-04-24 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Scott K Logan
Authors
- Audrow Nash
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
It is designed with C++’s specifics in mind.
gMock:
- Provides a declarative syntax for defining mocks.
- Can define partial (hybrid) mocks, which are a cross of real and mock objects.
- Handles functions of arbitrary types and overloaded functions.
- Comes with a rich set of matchers for validating function arguments.
- Uses an intuitive syntax for controlling the behavior of a mock.
- Does automatic verification of expectations (no record-and-replay needed).
- Allows arbitrary (partial) ordering constraints on function calls to be expressed.
- Lets a user extend it by defining new matchers and actions.
- Does not use exceptions.
- Is easy to learn and use.
Details and examples can be found here:
GoogleMock is a part of GoogleTest C++ testing framework and a subject to the same requirements.
Changelog for package gmock_vendor
1.16.0 (2025-04-24)
1.15.1 (2025-04-18)
- Bump minimum CMake version to 3.15 (#31)
- Contributors: mosfet80
1.15.0 (2024-04-26)
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.8.0 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-08-08 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Google Mock
The Google C++ mocking framework.
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
Google mock:
- lets you create mock classes trivially using simple macros.
- supports a rich set of matchers and actions.
- handles unordered, partially ordered, or completely ordered expectations.
- is extensible by users.
We hope you find it useful!
Features
- Provides a declarative syntax for defining mocks.
- Can easily define partial (hybrid) mocks, which are a cross of real and mock objects.
- Handles functions of arbitrary types and overloaded functions.
- Comes with a rich set of matchers for validating function arguments.
- Uses an intuitive syntax for controlling the behavior of a mock.
- Does automatic verification of expectations (no record-and-replay needed).
- Allows arbitrary (partial) ordering constraints on function calls to be expressed,.
- Lets a user extend it by defining new matchers and actions.
- Does not use exceptions.
- Is easy to learn and use.
Please see the project page above for more information as well as the mailing list for questions, discussions, and development. There is also an IRC channel on OFTC (irc.oftc.net) #gtest available. Please join us!
Please note that code under scripts/generator is from cppclean and released under the Apache License, which is different from Google Mock’s license.
Getting Started
If you are new to the project, we suggest that you read the user documentation in the following order:
- Learn the basics of Google Test, if you choose to use Google Mock with it (recommended).
- Read Google Mock for Dummies.
- Read the instructions below on how to build Google Mock.
You can also watch Zhanyong’s talk on Google Mock’s usage and implementation.
Once you understand the basics, check out the rest of the docs:
- CheatSheet - all the commonly used stuff at a glance.
- CookBook - recipes for getting things done, including advanced techniques.
If you need help, please check the KnownIssues and FrequentlyAskedQuestions before posting a question on the discussion group.
Using Google Mock Without Google Test
Google Mock is not a testing framework itself. Instead, it needs a testing framework for writing tests. Google Mock works seamlessly with Google Test, but you can also use it with any C++ testing framework.
Requirements for End Users
Google Mock is implemented on top of Google Test, and depends on it. You must use the bundled version of Google Test when using Google Mock.
You can also easily configure Google Mock to work with another testing framework, although it will still need Google Test. Please read “Using_Google_Mock_with_Any_Testing_Framework” for instructions.
Google Mock depends on advanced C++ features and thus requires a more modern compiler. The following are needed to use Google Mock:
Linux Requirements
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.15.0 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2024-04-26 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Scott K Logan
Authors
- Audrow Nash
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
It is designed with C++’s specifics in mind.
gMock:
- Provides a declarative syntax for defining mocks.
- Can define partial (hybrid) mocks, which are a cross of real and mock objects.
- Handles functions of arbitrary types and overloaded functions.
- Comes with a rich set of matchers for validating function arguments.
- Uses an intuitive syntax for controlling the behavior of a mock.
- Does automatic verification of expectations (no record-and-replay needed).
- Allows arbitrary (partial) ordering constraints on function calls to be expressed.
- Lets a user extend it by defining new matchers and actions.
- Does not use exceptions.
- Is easy to learn and use.
Details and examples can be found here:
GoogleMock is a part of GoogleTest C++ testing framework and a subject to the same requirements.
Changelog for package gmock_vendor
1.15.0 (2024-04-26)
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.8.0 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | crystal |
Last Updated | 2019-01-04 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Google Mock
The Google C++ mocking framework.
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
Google mock:
- lets you create mock classes trivially using simple macros.
- supports a rich set of matchers and actions.
- handles unordered, partially ordered, or completely ordered expectations.
- is extensible by users.
We hope you find it useful!
Features
- Provides a declarative syntax for defining mocks.
- Can easily define partial (hybrid) mocks, which are a cross of real and mock objects.
- Handles functions of arbitrary types and overloaded functions.
- Comes with a rich set of matchers for validating function arguments.
- Uses an intuitive syntax for controlling the behavior of a mock.
- Does automatic verification of expectations (no record-and-replay needed).
- Allows arbitrary (partial) ordering constraints on function calls to be expressed,.
- Lets an user extend it by defining new matchers and actions.
- Does not use exceptions.
- Is easy to learn and use.
Please see the project page above for more information as well as the mailing list for questions, discussions, and development. There is also an IRC channel on OFTC (irc.oftc.net) #gtest available. Please join us!
Please note that code under scripts/generator is from cppclean and released under the Apache License, which is different from Google Mock’s license.
Getting Started
If you are new to the project, we suggest that you read the user documentation in the following order:
- Learn the basics of Google Test, if you choose to use Google Mock with it (recommended).
- Read Google Mock for Dummies.
- Read the instructions below on how to build Google Mock.
You can also watch Zhanyong’s talk on Google Mock’s usage and implementation.
Once you understand the basics, check out the rest of the docs:
- CheatSheet - all the commonly used stuff at a glance.
- CookBook - recipes for getting things done, including advanced techniques.
If you need help, please check the KnownIssues and FrequentlyAskedQuestions before posting a question on the discussion group.
Using Google Mock Without Google Test
Google Mock is not a testing framework itself. Instead, it needs a testing framework for writing tests. Google Mock works seamlessly with Google Test, but you can also use it with any C++ testing framework.
Requirements for End Users
Google Mock is implemented on top of Google Test, and depends on it. You must use the bundled version of Google Test when using Google Mock.
You can also easily configure Google Mock to work with another testing framework, although it will still need Google Test. Please read “Using_Google_Mock_with_Any_Testing_Framework” for instructions.
Google Mock depends on advanced C++ features and thus requires a more modern compiler. The following are needed to use Google Mock:
Linux Requirements
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.15.0 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2024-04-26 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Scott K Logan
Authors
- Audrow Nash
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
It is designed with C++’s specifics in mind.
gMock:
- Provides a declarative syntax for defining mocks.
- Can define partial (hybrid) mocks, which are a cross of real and mock objects.
- Handles functions of arbitrary types and overloaded functions.
- Comes with a rich set of matchers for validating function arguments.
- Uses an intuitive syntax for controlling the behavior of a mock.
- Does automatic verification of expectations (no record-and-replay needed).
- Allows arbitrary (partial) ordering constraints on function calls to be expressed.
- Lets a user extend it by defining new matchers and actions.
- Does not use exceptions.
- Is easy to learn and use.
Details and examples can be found here:
GoogleMock is a part of GoogleTest C++ testing framework and a subject to the same requirements.
Changelog for package gmock_vendor
1.15.0 (2024-04-26)
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.8.9000 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | dashing |
Last Updated | 2019-05-08 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Google Mock
The Google C++ mocking framework.
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
Google mock:
- lets you create mock classes trivially using simple macros.
- supports a rich set of matchers and actions.
- handles unordered, partially ordered, or completely ordered expectations.
- is extensible by users.
We hope you find it useful!
Features
- Provides a declarative syntax for defining mocks.
- Can easily define partial (hybrid) mocks, which are a cross of real and mock objects.
- Handles functions of arbitrary types and overloaded functions.
- Comes with a rich set of matchers for validating function arguments.
- Uses an intuitive syntax for controlling the behavior of a mock.
- Does automatic verification of expectations (no record-and-replay needed).
- Allows arbitrary (partial) ordering constraints on function calls to be expressed,.
- Lets a user extend it by defining new matchers and actions.
- Does not use exceptions.
- Is easy to learn and use.
Please see the project page above for more information as well as the mailing list for questions, discussions, and development. There is also an IRC channel on OFTC (irc.oftc.net) #gtest available. Please join us!
Please note that code under scripts/generator is from cppclean and released under the Apache License, which is different from Google Mock’s license.
Getting Started
If you are new to the project, we suggest that you read the user documentation in the following order:
- Learn the basics of Google Test, if you choose to use Google Mock with it (recommended).
- Read Google Mock for Dummies.
- Read the instructions below on how to build Google Mock.
You can also watch Zhanyong’s talk on Google Mock’s usage and implementation.
Once you understand the basics, check out the rest of the docs:
- CheatSheet - all the commonly used stuff at a glance.
- CookBook - recipes for getting things done, including advanced techniques.
If you need help, please check the KnownIssues and FrequentlyAskedQuestions before posting a question on the discussion group.
Using Google Mock Without Google Test
Google Mock is not a testing framework itself. Instead, it needs a testing framework for writing tests. Google Mock works seamlessly with Google Test, but you can also use it with any C++ testing framework.
Requirements for End Users
Google Mock is implemented on top of Google Test, and depends on it. You must use the bundled version of Google Test when using Google Mock.
You can also easily configure Google Mock to work with another testing framework, although it will still need Google Test. Please read “Using_Google_Mock_with_Any_Testing_Framework” for instructions.
Google Mock depends on advanced C++ features and thus requires a more modern compiler. The following are needed to use Google Mock:
Linux Requirements
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.10.9003 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | galactic |
Last Updated | 2021-06-04 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Michel Hidalgo
Authors
- Dirk Thomas
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
gMock:
- provides a declarative syntax for defining mocks,
- can define partial (hybrid) mocks, which are a cross of real and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay needed),
- allows arbitrary (partial) ordering constraints on function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Details and examples can be found here:
Please note that code under scripts/generator/ is from the cppclean project and under the Apache License, which is different from Google Mock’s license.
Google Mock is a part of Google Test C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.8.9001 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | foxy |
Last Updated | 2021-08-31 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Google Mock
The Google C++ mocking framework.
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
Google mock:
- lets you create mock classes trivially using simple macros.
- supports a rich set of matchers and actions.
- handles unordered, partially ordered, or completely ordered expectations.
- is extensible by users.
We hope you find it useful!
Features
- Provides a declarative syntax for defining mocks.
- Can easily define partial (hybrid) mocks, which are a cross of real and mock objects.
- Handles functions of arbitrary types and overloaded functions.
- Comes with a rich set of matchers for validating function arguments.
- Uses an intuitive syntax for controlling the behavior of a mock.
- Does automatic verification of expectations (no record-and-replay needed).
- Allows arbitrary (partial) ordering constraints on function calls to be expressed,.
- Lets a user extend it by defining new matchers and actions.
- Does not use exceptions.
- Is easy to learn and use.
Please see the project page above for more information as well as the mailing list for questions, discussions, and development. There is also an IRC channel on OFTC (irc.oftc.net) #gtest available. Please join us!
Please note that code under scripts/generator is from cppclean and released under the Apache License, which is different from Google Mock’s license.
Getting Started
If you are new to the project, we suggest that you read the user documentation in the following order:
- Learn the basics of Google Test, if you choose to use Google Mock with it (recommended).
- Read Google Mock for Dummies.
- Read the instructions below on how to build Google Mock.
You can also watch Zhanyong’s talk on Google Mock’s usage and implementation.
Once you understand the basics, check out the rest of the docs:
- CheatSheet - all the commonly used stuff at a glance.
- CookBook - recipes for getting things done, including advanced techniques.
If you need help, please check the KnownIssues and FrequentlyAskedQuestions before posting a question on the discussion group.
Using Google Mock Without Google Test
Google Mock is not a testing framework itself. Instead, it needs a testing framework for writing tests. Google Mock works seamlessly with Google Test, but you can also use it with any C++ testing framework.
Requirements for End Users
Google Mock is implemented on top of Google Test, and depends on it. You must use the bundled version of Google Test when using Google Mock.
You can also easily configure Google Mock to work with another testing framework, although it will still need Google Test. Please read “Using_Google_Mock_with_Any_Testing_Framework” for instructions.
Google Mock depends on advanced C++ features and thus requires a more modern compiler. The following are needed to use Google Mock:
Linux Requirements
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.10.9005 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | iron |
Last Updated | 2023-04-11 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Scott K Logan
Authors
- Audrow Nash
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
gMock:
- provides a declarative syntax for defining mocks,
- can define partial (hybrid) mocks, which are a cross of real and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay needed),
- allows arbitrary (partial) ordering constraints on function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Details and examples can be found here:
Please note that code under scripts/generator/ is from the cppclean project and under the Apache License, which is different from Google Mock’s license.
Google Mock is a part of Google Test C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
beluga_system_tests | |
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.10.9006 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | humble |
Last Updated | 2024-07-26 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Audrow Nash
Authors
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
gMock:
- provides a declarative syntax for defining mocks,
- can define partial (hybrid) mocks, which are a cross of real and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay needed),
- allows arbitrary (partial) ordering constraints on function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Details and examples can be found here:
Please note that code under scripts/generator/ is from the cppclean project and under the Apache License, which is different from Google Mock’s license.
Google Mock is a part of Google Test C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
beluga_system_tests | |
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.10.9006 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | humble |
Last Updated | 2024-07-26 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Audrow Nash
Authors
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
gMock:
- provides a declarative syntax for defining mocks,
- can define partial (hybrid) mocks, which are a cross of real and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay needed),
- allows arbitrary (partial) ordering constraints on function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Details and examples can be found here:
Please note that code under scripts/generator/ is from the cppclean project and under the Apache License, which is different from Google Mock’s license.
Google Mock is a part of Google Test C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
beluga_system_tests | |
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.10.9006 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | humble |
Last Updated | 2024-07-26 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Audrow Nash
Authors
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
gMock:
- provides a declarative syntax for defining mocks,
- can define partial (hybrid) mocks, which are a cross of real and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay needed),
- allows arbitrary (partial) ordering constraints on function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Details and examples can be found here:
Please note that code under scripts/generator/ is from the cppclean project and under the Apache License, which is different from Google Mock’s license.
Google Mock is a part of Google Test C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
beluga_system_tests | |
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.10.9006 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | humble |
Last Updated | 2024-07-26 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Audrow Nash
Authors
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
gMock:
- provides a declarative syntax for defining mocks,
- can define partial (hybrid) mocks, which are a cross of real and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay needed),
- allows arbitrary (partial) ordering constraints on function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Details and examples can be found here:
Please note that code under scripts/generator/ is from the cppclean project and under the Apache License, which is different from Google Mock’s license.
Google Mock is a part of Google Test C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
beluga_system_tests | |
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.10.9006 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | humble |
Last Updated | 2024-07-26 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Audrow Nash
Authors
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
gMock:
- provides a declarative syntax for defining mocks,
- can define partial (hybrid) mocks, which are a cross of real and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay needed),
- allows arbitrary (partial) ordering constraints on function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Details and examples can be found here:
Please note that code under scripts/generator/ is from the cppclean project and under the Apache License, which is different from Google Mock’s license.
Google Mock is a part of Google Test C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
beluga_system_tests | |
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.10.9006 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | humble |
Last Updated | 2024-07-26 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Audrow Nash
Authors
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
gMock:
- provides a declarative syntax for defining mocks,
- can define partial (hybrid) mocks, which are a cross of real and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay needed),
- allows arbitrary (partial) ordering constraints on function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Details and examples can be found here:
Please note that code under scripts/generator/ is from the cppclean project and under the Apache License, which is different from Google Mock’s license.
Google Mock is a part of Google Test C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
beluga_system_tests | |
ament_cmake_gmock |
Launch files
Messages
Services
Plugins
Recent questions tagged gmock_vendor at Robotics Stack Exchange
![]() |
gmock_vendor package from googletest repogmock_vendor gtest_vendor |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 1.10.9006 |
License | BSD |
Build type | CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/googletest.git |
VCS Type | git |
VCS Version | humble |
Last Updated | 2024-07-26 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Audrow Nash
Authors
- Dirk Thomas
- Michel Hidalgo
Googletest Mocking (gMock) Framework
Overview
Google’s framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests.
It is inspired by:
and designed with C++’s specifics in mind.
gMock:
- provides a declarative syntax for defining mocks,
- can define partial (hybrid) mocks, which are a cross of real and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay needed),
- allows arbitrary (partial) ordering constraints on function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Details and examples can be found here:
Please note that code under scripts/generator/ is from the cppclean project and under the Apache License, which is different from Google Mock’s license.
Google Mock is a part of Google Test C++ testing framework and a subject to the same requirements.
Wiki Tutorials
Dependant Packages
Name | Deps |
---|---|
beluga_system_tests | |
ament_cmake_gmock |