aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/docs
diff options
context:
space:
mode:
authorGennadiy Civil <gennadiycivil@users.noreply.github.com>2019-07-15 13:29:29 -0400
committerGitHub <noreply@github.com>2019-07-15 13:29:29 -0400
commit5c4d53fd52d17d882b0b9bc26d715d2a0e7cfef2 (patch)
treed9395480bfad1c576a230357c5791dd7e748afa7 /googlemock/docs
parentee3aa831172090fd5442820f215cb04ab6062756 (diff)
parentf81dbd6ce8f055b20441aeb636b9c9b7bb23cc7a (diff)
downloadgoogletest-5c4d53fd52d17d882b0b9bc26d715d2a0e7cfef2.tar.gz
googletest-5c4d53fd52d17d882b0b9bc26d715d2a0e7cfef2.tar.bz2
googletest-5c4d53fd52d17d882b0b9bc26d715d2a0e7cfef2.zip
Merge pull request #2326 from kuzkry/missing-references-to-documentation
Add missing references to documentation
Diffstat (limited to 'googlemock/docs')
-rw-r--r--googlemock/docs/cheat_sheet.md (renamed from googlemock/docs/CheatSheet.md)0
-rw-r--r--googlemock/docs/cook_book.md6
-rw-r--r--googlemock/docs/design_doc.md (renamed from googlemock/docs/DesignDoc.md)0
-rw-r--r--googlemock/docs/documentation.md (renamed from googlemock/docs/Documentation.md)7
-rw-r--r--googlemock/docs/for_dummies.md (renamed from googlemock/docs/ForDummies.md)8
-rw-r--r--googlemock/docs/frequently_asked_questions.md (renamed from googlemock/docs/FrequentlyAskedQuestions.md)2
-rw-r--r--googlemock/docs/known_issues.md (renamed from googlemock/docs/KnownIssues.md)0
7 files changed, 12 insertions, 11 deletions
diff --git a/googlemock/docs/CheatSheet.md b/googlemock/docs/cheat_sheet.md
index d09d910c..d09d910c 100644
--- a/googlemock/docs/CheatSheet.md
+++ b/googlemock/docs/cheat_sheet.md
diff --git a/googlemock/docs/cook_book.md b/googlemock/docs/cook_book.md
index 8f26a839..d0402091 100644
--- a/googlemock/docs/cook_book.md
+++ b/googlemock/docs/cook_book.md
@@ -3,7 +3,7 @@
<!-- GOOGLETEST_CM0011 DO NOT DELETE -->
You can find recipes for using Google Mock here. If you haven't yet,
-please read the [ForDummies](ForDummies.md) document first to make sure you understand
+please read the [ForDummies](for_dummies.md) document first to make sure you understand
the basics.
**Note:** Google Mock lives in the `testing` name space. For
@@ -866,7 +866,7 @@ says that `Blah()` will be called with arguments `x`, `y`, and `z` where
`x < y < z`.
As a convenience and example, Google Mock provides some matchers for
-2-tuples, including the `Lt()` matcher above. See the [CheatSheet](CheatSheet.md) for
+2-tuples, including the `Lt()` matcher above. See the [CheatSheet](cheat_sheet.md) for
the complete list.
Note that if you want to pass the arguments to a predicate of your own
@@ -1391,7 +1391,7 @@ instead of being overly constraining.
Google Mock allows you to impose an arbitrary DAG (directed acyclic
graph) on the calls. One way to express the DAG is to use the
-[After](CheatSheet.md#the-after-clause) clause of `EXPECT_CALL`.
+[After](cheat_sheet.md#the-after-clause) clause of `EXPECT_CALL`.
Another way is via the `InSequence()` clause (not the same as the
`InSequence` class), which we borrowed from jMock 2. It's less
diff --git a/googlemock/docs/DesignDoc.md b/googlemock/docs/design_doc.md
index 4cddc9d0..4cddc9d0 100644
--- a/googlemock/docs/DesignDoc.md
+++ b/googlemock/docs/design_doc.md
diff --git a/googlemock/docs/Documentation.md b/googlemock/docs/documentation.md
index af8a3b90..831598cc 100644
--- a/googlemock/docs/Documentation.md
+++ b/googlemock/docs/documentation.md
@@ -4,10 +4,11 @@ current git version)**
documentation for that specific version instead (e.g. by checking out
the respective git branch/tag).**
- * [ForDummies](ForDummies.md) -- start here if you are new to Google Mock.
- * [CheatSheet](CheatSheet.md) -- a quick reference.
+ * [ForDummies](for_dummies.md) -- start here if you are new to Google Mock.
+ * [CheatSheet](cheat_sheet.md) -- a quick reference.
* [CookBook](cook_book.md) -- recipes for doing various tasks using Google Mock.
- * [FrequentlyAskedQuestions](FrequentlyAskedQuestions.md) -- check here before asking a question on the mailing list.
+ * [DesignDoc](design_doc.md) -- design of and rationale behind some Google Mock features.
+ * [FrequentlyAskedQuestions](frequently_asked_questions.md) and [KnownIssues](known_issues.md) -- check here before asking a question on the mailing list.
To contribute code to Google Mock, read:
diff --git a/googlemock/docs/ForDummies.md b/googlemock/docs/for_dummies.md
index c8a83cba..21105312 100644
--- a/googlemock/docs/ForDummies.md
+++ b/googlemock/docs/for_dummies.md
@@ -1,6 +1,6 @@
-(**Note:** If you get compiler errors that you don't understand, be sure to consult [Google Mock Doctor](FrequentlyAskedQuestions.md#how-am-i-supposed-to-make-sense-of-these-horrible-template-errors).)
+(**Note:** If you get compiler errors that you don't understand, be sure to consult [Google Mock Doctor](frequently_asked_questions.md#how-am-i-supposed-to-make-sense-of-these-horrible-template-errors).)
# What Is Google C++ Mocking Framework? #
When you write a prototype or test, often it's not feasible or wise to rely on real objects entirely. A **mock object** implements the same interface as a real object (so it can be used as one), but lets you specify at run time how it will be used and what it should do (which methods will be called? in which order? how many times? with what arguments? what will they return? etc).
@@ -249,7 +249,7 @@ EXPECT_CALL(turtle, Forward(_));
`_` is an instance of what we call **matchers**. A matcher is like a predicate and can test whether an argument is what we'd expect. You can use a matcher inside `EXPECT_CALL()` wherever a function argument is expected.
-A list of built-in matchers can be found in the [CheatSheet](CheatSheet.md). For example, here's the `Ge` (greater than or equal) matcher:
+A list of built-in matchers can be found in the [CheatSheet](cheat_sheet.md). For example, here's the `Ge` (greater than or equal) matcher:
```cpp
using ::testing::Ge;
@@ -264,7 +264,7 @@ The first clause we can specify following an `EXPECT_CALL()` is `Times()`. We ca
An interesting special case is when we say `Times(0)`. You may have guessed - it means that the function shouldn't be called with the given arguments at all, and Google Mock will report a Google Test failure whenever the function is (wrongfully) called.
-We've seen `AtLeast(n)` as an example of fuzzy cardinalities earlier. For the list of built-in cardinalities you can use, see the [CheatSheet](CheatSheet.md).
+We've seen `AtLeast(n)` as an example of fuzzy cardinalities earlier. For the list of built-in cardinalities you can use, see the [CheatSheet](cheat_sheet.md).
The `Times()` clause can be omitted. **If you omit `Times()`, Google Mock will infer the cardinality for you.** The rules are easy to remember:
@@ -305,7 +305,7 @@ says that `turtle.GetY()` will be called _at least twice_ (Google Mock knows thi
Of course, if you explicitly write a `Times()`, Google Mock will not try to infer the cardinality itself. What if the number you specified is larger than there are `WillOnce()` clauses? Well, after all `WillOnce()`s are used up, Google Mock will do the _default_ action for the function every time (unless, of course, you have a `WillRepeatedly()`.).
-What can we do inside `WillOnce()` besides `Return()`? You can return a reference using `ReturnRef(variable)`, or invoke a pre-defined function, among [others](CheatSheet.md#actions).
+What can we do inside `WillOnce()` besides `Return()`? You can return a reference using `ReturnRef(variable)`, or invoke a pre-defined function, among [others](cheat_sheet.md#actions).
**Important note:** The `EXPECT_CALL()` statement evaluates the action clause only once, even though the action may be performed many times. Therefore you must be careful about side effects. The following may not do what you want:
diff --git a/googlemock/docs/FrequentlyAskedQuestions.md b/googlemock/docs/frequently_asked_questions.md
index 7b7ba0fb..de1ad2a2 100644
--- a/googlemock/docs/FrequentlyAskedQuestions.md
+++ b/googlemock/docs/frequently_asked_questions.md
@@ -206,7 +206,7 @@ need any help.
Google Mock works out of the box with Google Test. However, it's easy
to configure it to work with any testing framework of your choice.
-[Here](ForDummies.md#using-google-mock-with-any-testing-framework) is how.
+[Here](for_dummies.md#using-google-mock-with-any-testing-framework) is how.
## How am I supposed to make sense of these horrible template errors? ##
diff --git a/googlemock/docs/KnownIssues.md b/googlemock/docs/known_issues.md
index adadf514..adadf514 100644
--- a/googlemock/docs/KnownIssues.md
+++ b/googlemock/docs/known_issues.md