• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

cmake/23-Nov-2023-2218

docs/23-Nov-2023-53

include/gmock/23-Nov-2023-11,7176,826

scripts/23-Nov-2023-3,6232,617

src/23-Nov-2023-2,0601,174

test/23-Nov-2023-20,11614,322

Android.bpD23-Nov-20232.8 KiB124111

CMakeLists.txtD23-Nov-20238 KiB219184

LICENSED23-Nov-20231.4 KiB2925

MODULE_LICENSE_BSD_LIKED23-Nov-20230

NOTICED23-Nov-20231.4 KiB2925

README.mdD23-Nov-20231.7 KiB4533

README.md

1# Googletest Mocking (gMock) Framework
2
3### Overview
4
5Google's framework for writing and using C++ mock classes. It can help you
6derive better designs of your system and write better tests.
7
8It is inspired by:
9
10*   [jMock](http://www.jmock.org/)
11*   [EasyMock](http://www.easymock.org/)
12*   [Hamcrest](http://code.google.com/p/hamcrest/)
13
14It is designed with C++'s specifics in mind.
15
16gMock:
17
18-   Provides a declarative syntax for defining mocks.
19-   Can define partial (hybrid) mocks, which are a cross of real and mock
20    objects.
21-   Handles functions of arbitrary types and overloaded functions.
22-   Comes with a rich set of matchers for validating function arguments.
23-   Uses an intuitive syntax for controlling the behavior of a mock.
24-   Does automatic verification of expectations (no record-and-replay needed).
25-   Allows arbitrary (partial) ordering constraints on function calls to be
26    expressed.
27-   Lets a user extend it by defining new matchers and actions.
28-   Does not use exceptions.
29-   Is easy to learn and use.
30
31Details and examples can be found here:
32
33*   [gMock for Dummies](https://google.github.io/googletest/gmock_for_dummies.html)
34*   [Legacy gMock FAQ](https://google.github.io/googletest/gmock_faq.html)
35*   [gMock Cookbook](https://google.github.io/googletest/gmock_cook_book.html)
36*   [gMock Cheat Sheet](https://google.github.io/googletest/gmock_cheat_sheet.html)
37
38Please note that code under scripts/generator/ is from the
39[cppclean project](http://code.google.com/p/cppclean/) and under the Apache
40License, which is different from GoogleMock's license.
41
42GoogleMock is a part of
43[GoogleTest C++ testing framework](http://github.com/google/googletest/) and a
44subject to the same requirements.
45