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
ce468a17
Unverified
Commit
ce468a17
authored
Jun 13, 2018
by
Gennadiy Civil
Committed by
GitHub
Jun 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1627 from atetubou/stdstring
Reduce the number of strcmp calling while initialization
parents
885808cc
a0d43a7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gtest.cc
googletest/src/gtest.cc
+3
-3
No files found.
googletest/src/gtest.cc
View file @
ce468a17
...
@@ -4907,11 +4907,11 @@ TestCase* UnitTestImpl::GetTestCase(const char* test_case_name,
...
@@ -4907,11 +4907,11 @@ TestCase* UnitTestImpl::GetTestCase(const char* test_case_name,
Test
::
SetUpTestCaseFunc
set_up_tc
,
Test
::
SetUpTestCaseFunc
set_up_tc
,
Test
::
TearDownTestCaseFunc
tear_down_tc
)
{
Test
::
TearDownTestCaseFunc
tear_down_tc
)
{
// Can we find a TestCase with the given name?
// Can we find a TestCase with the given name?
const
std
::
vector
<
TestCase
*>::
const_iterator
test_case
=
const
std
::
vector
<
TestCase
*>::
const_
reverse_
iterator
test_case
=
std
::
find_if
(
test_cases_
.
begin
(),
test_cases_
.
end
(),
std
::
find_if
(
test_cases_
.
rbegin
(),
test_cases_
.
r
end
(),
TestCaseNameIs
(
test_case_name
));
TestCaseNameIs
(
test_case_name
));
if
(
test_case
!=
test_cases_
.
end
())
if
(
test_case
!=
test_cases_
.
r
end
())
return
*
test_case
;
return
*
test_case
;
// No. Let's create one.
// No. Let's create one.
...
...
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