aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/docs
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2019-10-22 12:24:04 -0400
committervslashg <gfalcon@google.com>2019-10-23 13:35:16 -0400
commitaa1146da816954a87bdd6ad745d6281a529e0d90 (patch)
tree49785dd359d7e11e7b9c4f93cea68fe4ce3f669f /googletest/docs
parentf1afeaa6434812276d106c161f09bf9351a47d39 (diff)
downloadgoogletest-aa1146da816954a87bdd6ad745d6281a529e0d90.tar.gz
googletest-aa1146da816954a87bdd6ad745d6281a529e0d90.tar.bz2
googletest-aa1146da816954a87bdd6ad745d6281a529e0d90.zip
Googletest export
Split the scoped trace examples into two snippets. This doesn't have an effect in the github markdown renderer, but in some other renderers/templates, this leads them to be independently copy-pastable. In particular, the markdown rendering that Google uses internally has a copy button for each code snippet, which, before this change, would copy both lines. Bad copy button, no cookie! After this change, there will be two such buttons, one per line, and clicking a copy button will copy only the one snippet it is next to, and not the other. This is desirable because nobody will ever want to copy both lines, only one or the other. PiperOrigin-RevId: 276079009
Diffstat (limited to 'googletest/docs')
-rw-r--r--googletest/docs/advanced.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md
index 5c34d262..ce8644e4 100644
--- a/googletest/docs/advanced.md
+++ b/googletest/docs/advanced.md
@@ -918,6 +918,8 @@ the `SCOPED_TRACE` macro or the `ScopedTrace` utility:
```c++
SCOPED_TRACE(message);
+```
+```c++
ScopedTrace trace("file_path", line_number, message);
```