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
8e862211
Commit
8e862211
authored
Jan 18, 2018
by
Fedor Trushkin
Browse files
Use fully qualified in examples
parent
354fc8d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
googletest/docs/AdvancedGuide.md
googletest/docs/AdvancedGuide.md
+2
-2
No files found.
googletest/docs/AdvancedGuide.md
View file @
8e862211
...
...
@@ -790,8 +790,8 @@ extra logging or custom failure messages, but that usually clutters up
your tests. A better solution is to use the
`SCOPED_TRACE`
macro or
the
`ScopedTrace`
utility:
|
`SCOPED_TRACE(`
_message_
`);`
|
`ScopedTrace trace(`
_"file\_path"_
`, `
_line\_number_
`, `
_message_
`);`
|
|:-----------------------------|:----------------------------------------------------------------------|
|
`SCOPED_TRACE(`
_message_
`);`
|
`
::testing::
ScopedTrace trace(`
_"file\_path"_
`, `
_line\_number_
`, `
_message_
`);`
|
|:-----------------------------|:----------------------------------------------------------------------
-----------
|
where
`message`
can be anything streamable to
`std::ostream`
.
`SCOPED_TRACE`
macro will cause the current file name, line number, and the given message to be
...
...
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