Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
40f82ce5
Unverified
Commit
40f82ce5
authored
Oct 05, 2018
by
Gennadiy Civil
Committed by
GitHub
Oct 05, 2018
Browse files
Update primer.md
fixes #1709
parent
07c4753a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
googletest/docs/primer.md
googletest/docs/primer.md
+2
-5
No files found.
googletest/docs/primer.md
View file @
40f82ce5
...
...
@@ -477,11 +477,8 @@ If a fatal failure happens the subsequent steps will be skipped.
## Writing the main() Function
In
`google3`
, the simplest approach is to use the default main() function
provided by linking in
`"//testing/base/public:gtest_main"`
. If that doesn't
cover what you need, you should write your own main() function, which should
return the value of
`RUN_ALL_TESTS()`
. Link to
`"//testing/base/public:gunit"`
.
You can start from this boilerplate:
Write your own main() function, which should
return the value of
`RUN_ALL_TESTS()`
```
c++
#include "this/package/foo.h"
...
...
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