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
32983d21
Commit
32983d21
authored
Mar 02, 2021
by
Abseil Team
Committed by
CJ Johnson
Mar 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Fix enum names in a value-parameterized test example. PiperOrigin-RevId: 360559723
parent
de41f822
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
advanced.md
docs/advanced.md
+2
-2
No files found.
docs/advanced.md
View file @
32983d21
...
@@ -1501,11 +1501,11 @@ class MyTestSuite : public testing::TestWithParam<std::tuple<MyType, std::string
...
@@ -1501,11 +1501,11 @@ class MyTestSuite : public testing::TestWithParam<std::tuple<MyType, std::string
INSTANTIATE_TEST_SUITE_P
(
INSTANTIATE_TEST_SUITE_P
(
MyGroup
,
MyTestSuite
,
MyGroup
,
MyTestSuite
,
testing
::
Combine
(
testing
::
Combine
(
testing
::
Values
(
MyType
::
VALUE_0
,
MyType
::
VALUE_1
),
testing
::
Values
(
MyType
::
MY_FOO
,
MyType
::
MY_BAR
),
testing
::
Values
(
"A"
,
"B"
)),
testing
::
Values
(
"A"
,
"B"
)),
[](
const
testing
::
TestParamInfo
<
MyTestSuite
::
ParamType
>&
info
)
{
[](
const
testing
::
TestParamInfo
<
MyTestSuite
::
ParamType
>&
info
)
{
std
::
string
name
=
absl
::
StrCat
(
std
::
string
name
=
absl
::
StrCat
(
std
::
get
<
0
>
(
info
.
param
)
==
MY_FOO
?
"Foo"
:
"Bar"
,
std
::
get
<
0
>
(
info
.
param
)
==
M
yType
::
M
Y_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