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
d69a1129
Commit
d69a1129
authored
May 11, 2021
by
Abseil Team
Committed by
CJ Johnson
May 13, 2021
Browse files
Googletest export
Fix code in googletest parameterized name example. PiperOrigin-RevId: 373262838
parent
97f96cbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/advanced.md
docs/advanced.md
+1
-1
No files found.
docs/advanced.md
View file @
d69a1129
...
@@ -1537,7 +1537,7 @@ INSTANTIATE_TEST_SUITE_P(
...
@@ -1537,7 +1537,7 @@ INSTANTIATE_TEST_SUITE_P(
std
::
string
name
=
absl
::
StrCat
(
std
::
string
name
=
absl
::
StrCat
(
std
::
get
<
0
>
(
info
.
param
)
==
MyType
::
MY_FOO
?
"Foo"
:
"Bar"
,
std
::
get
<
0
>
(
info
.
param
)
==
MyType
::
MY_FOO
?
"Foo"
:
"Bar"
,
std
::
get
<
1
>
(
info
.
param
));
std
::
get
<
1
>
(
info
.
param
));
absl
::
c_replace_if
(
name
,
[](
char
c
)
{
return
!
std
::
isalnum
(
c
);
},
''
);
absl
::
c_replace_if
(
name
,
[](
char
c
)
{
return
!
std
::
isalnum
(
c
);
},
'
_
'
);
return
name
;
return
name
;
});
});
```
```
...
...
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