|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| cmake/ | | 03-May-2024 | - | 22 | 18 |
| docs/ | | 03-May-2024 | - | 6,333 | 5,003 |
| include/gmock/ | | 03-May-2024 | - | 14,505 | 9,395 |
| scripts/ | | 03-May-2024 | - | 4,423 | 3,223 |
| src/ | | 03-May-2024 | - | 2,047 | 1,162 |
| test/ | | 03-May-2024 | - | 20,507 | 14,483 |
| Android.bp | D | 03-May-2024 | 2.4 KiB | 114 | 102 |
| CMakeLists.txt | D | 03-May-2024 | 8.5 KiB | 234 | 198 |
| CONTRIBUTORS | D | 03-May-2024 | 1.3 KiB | 41 | 39 |
| LICENSE | D | 03-May-2024 | 1.4 KiB | 29 | 25 |
| MODULE_LICENSE_BSD_LIKE | D | 03-May-2024 | 0 | | |
| NOTICE | D | 03-May-2024 | 1.4 KiB | 29 | 25 |
| README.md | D | 03-May-2024 | 1.6 KiB | 45 | 33 |
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/), and
12* [Hamcrest](http://code.google.com/p/hamcrest/),
13
14and 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, and
29- is easy to learn and use.
30
31Details and examples can be found here:
32
33* [gMock for Dummies](docs/for_dummies.md)
34* [Legacy gMock FAQ](docs/gmock_faq.md)
35* [gMock Cookbook](docs/cook_book.md)
36* [gMock Cheat Sheet](docs/cheat_sheet.md)
37
38Please note that code under scripts/generator/ is from the [cppclean
39project](http://code.google.com/p/cppclean/) and under the Apache
40License, which is different from Google Mock's license.
41
42Google Mock is a part of
43[Google Test C++ testing framework](http://github.com/google/googletest/) and a
44subject to the same requirements.
45