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
53cc7cd1
Commit
53cc7cd1
authored
Mar 22, 2021
by
Abseil Team
Committed by
Dino Radaković
Mar 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Code style cleanups in cheat sheet PiperOrigin-RevId: 364465553
parent
d4e3b8ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gmock_cheat_sheet.md
docs/gmock_cheat_sheet.md
+3
-3
No files found.
docs/gmock_cheat_sheet.md
View file @
53cc7cd1
...
@@ -123,7 +123,7 @@ TEST(BarTest, DoesThis) {
...
@@ -123,7 +123,7 @@ TEST(BarTest, DoesThis) {
.
WillRepeatedly
(
Return
(
"Category 5"
));
.
WillRepeatedly
(
Return
(
"Category 5"
));
// ... other expectations ...
// ... other expectations ...
EXPECT_EQ
(
"good"
,
MyProductionFunction
(
&
foo
)
);
// #5
EXPECT_EQ
(
MyProductionFunction
(
&
foo
),
"good"
);
// #5
}
// #6
}
// #6
```
```
...
@@ -162,8 +162,8 @@ Example usage:
...
@@ -162,8 +162,8 @@ Example usage:
auto
buzz1
=
mock_buzzer_
.
MakeBuzz
(
"hello"
);
auto
buzz1
=
mock_buzzer_
.
MakeBuzz
(
"hello"
);
auto
buzz2
=
mock_buzzer_
.
MakeBuzz
(
"hello"
);
auto
buzz2
=
mock_buzzer_
.
MakeBuzz
(
"hello"
);
EXPECT_NE
(
nullptr
,
buzz1
);
EXPECT_NE
(
buzz1
,
nullptr
);
EXPECT_NE
(
nullptr
,
buzz2
);
EXPECT_NE
(
buzz2
,
nullptr
);
EXPECT_NE
(
buzz1
,
buzz2
);
EXPECT_NE
(
buzz1
,
buzz2
);
// Resets the default action for return type std::unique_ptr<Buzz>,
// Resets the default action for return type std::unique_ptr<Buzz>,
...
...
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