Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
d128fc82
Commit
d128fc82
authored
Jan 15, 2021
by
Abseil Team
Committed by
Derek Mauro
Jan 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Fixes #3222, fixes #3225, closes #3223 PiperOrigin-RevId: 352066131
parent
5ae6e6e7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
14 deletions
+10
-14
advanced.md
docs/advanced.md
+1
-1
community_created_documentation.md
docs/community_created_documentation.md
+0
-2
gmock_cheat_sheet.md
docs/gmock_cheat_sheet.md
+3
-5
gmock_cook_book.md
docs/gmock_cook_book.md
+1
-1
gmock_for_dummies.md
docs/gmock_for_dummies.md
+1
-1
README.md
googlemock/README.md
+4
-4
No files found.
docs/advanced.md
View file @
d128fc82
...
...
@@ -371,7 +371,7 @@ Verifies that `val1` is less than, or almost equal to, `val2`. You can replace
### Asserting Using gMock Matchers
[
gMock
](
gmock_
index
.md
)
comes with
[
gMock
](
gmock_
for_dummies
.md
)
comes with
[
a library of matchers
](
gmock_cheat_sheet.md#MatcherList
)
for
validating arguments passed to mock objects. A gMock
*matcher*
is basically a
predicate that knows how to describe itself. It can be used in these assertion
...
...
docs/community_created_documentation.md
View file @
d128fc82
# Community-Created Documentation
go/gunit-community-created-docs
The following is a list, in no particular order, of links to documentation
created by the Googletest community.
...
...
docs/gmock_cheat_sheet.md
View file @
d128fc82
...
...
@@ -289,8 +289,7 @@ will be changed.
`IsTrue`
and
`IsFalse`
are useful when you need to use a matcher, or for types
that can be explicitly converted to Boolean, but are not implicitly converted to
Boolean. In other cases, you can use the basic
[
`EXPECT_TRUE` and `EXPECT_FALSE`
](
../../googletest/docs/primer#basic-assertions
)
assertions.
[
`EXPECT_TRUE` and `EXPECT_FALSE`
](
primer.md#basic-assertions
)
assertions.
### Floating-Point Matchers {#FpMatchers}
...
...
@@ -340,9 +339,8 @@ The `argument` can be either a C string or a C++ string object:
`ContainsRegex()`
and
`MatchesRegex()`
take ownership of the
`RE`
object. They
use the regular expression syntax defined
[
here
](
../../googletest/docs/advanced.md#regular-expression-syntax
)
. All of
these matchers, except
`ContainsRegex()`
and
`MatchesRegex()`
work for wide
strings as well.
[
here
](
advanced.md#regular-expression-syntax
)
. All of these matchers, except
`ContainsRegex()`
and
`MatchesRegex()`
work for wide strings as well.
### Container Matchers
...
...
docs/gmock_cook_book.md
View file @
d128fc82
...
...
@@ -4253,7 +4253,7 @@ value printer.
This printer knows how to print built-in C++ types, native arrays, STL
containers, and any type that supports the `
<<
` operator. For other types, it
prints the raw bytes in the value and hopes that you the user can figure it out.
[
googletest's advanced guide](../../googletest/docs/
advanced.md#teaching-googletest-how-to-print-your-values)
[
The GoogleTest advanced guide](
advanced.md#teaching-googletest-how-to-print-your-values)
explains how to extend the printer to do a better job at printing your
particular type than to dump the bytes.
...
...
docs/gmock_for_dummies.md
View file @
d128fc82
...
...
@@ -505,7 +505,7 @@ always return 100 as `n++` is only evaluated once. Similarly, `Return(new Foo)`
will create a new
`Foo`
object when the
`EXPECT_CALL()`
is executed, and will
return the same pointer every time. If you want the side effect to happen every
time, you need to define a custom action, which we'll teach in the
[
cook book
](
http://
<!-- GOOGLETEST_CM0012 DO NOT DELETE -->
).
[
cook book
](
gmock_cook_book.md
)
.
Time for another quiz! What do you think the following means?
...
...
googlemock/README.md
View file @
d128fc82
...
...
@@ -30,10 +30,10 @@ gMock:
Details and examples can be found here:
*
[
gMock for Dummies
](
docs/
for_dummies.md
)
*
[
Legacy gMock FAQ
](
docs/gmock_faq.md
)
*
[
gMock Cookbook
](
docs/
cook_book.md
)
*
[
gMock Cheat Sheet
](
docs/
cheat_sheet.md
)
*
[
gMock for Dummies
](
../docs/gmock_
for_dummies.md
)
*
[
Legacy gMock FAQ
](
../
docs/gmock_faq.md
)
*
[
gMock Cookbook
](
../docs/gmock_
cook_book.md
)
*
[
gMock Cheat Sheet
](
../docs/gmock_
cheat_sheet.md
)
Please note that code under scripts/generator/ is from the
[
cppclean project
](
http://code.google.com/p/cppclean/
)
and under the Apache
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment