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
a63be0bd
Commit
a63be0bd
authored
Nov 18, 2009
by
vladlosev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusts gMock Doctor to work with Return implementation updated in r233
parent
201ac161
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
gmock_doctor.py
scripts/gmock_doctor.py
+7
-4
No files found.
scripts/gmock_doctor.py
View file @
a63be0bd
...
@@ -186,8 +186,9 @@ def _NeedToReturnNothingDiagnoser(msg):
...
@@ -186,8 +186,9 @@ def _NeedToReturnNothingDiagnoser(msg):
"""Diagnoses the NRN disease, given the error messages by gcc."""
"""Diagnoses the NRN disease, given the error messages by gcc."""
regex
=
(
_FILE_LINE_RE
+
r'instantiated from here\n'
regex
=
(
_FILE_LINE_RE
+
r'instantiated from here\n'
r'.*gmock-actions\.h.*error: return-statement with a value, '
r'.*gmock-actions\.h.*error: instantiation of '
r'in function returning \'void\''
)
r'\'testing::internal::ReturnAction<R>::Impl<F>::value_\' '
r'as type \'void\''
)
diagnosis
=
"""
diagnosis
=
"""
You are using an action that returns *something*, but it needs to return
You are using an action that returns *something*, but it needs to return
void. Please use a void-returning action instead.
void. Please use a void-returning action instead.
...
@@ -336,8 +337,10 @@ Did you forget to write
...
@@ -336,8 +337,10 @@ Did you forget to write
def
_NeedToUseReturnNullDiagnoser
(
msg
):
def
_NeedToUseReturnNullDiagnoser
(
msg
):
"""Diagnoses the NRNULL disease, given the error messages by gcc."""
"""Diagnoses the NRNULL disease, given the error messages by gcc."""
regex
=
(
_FILE_LINE_RE
+
r'instantiated from here\n'
regex
=
(
'instantiated from
\'
testing::internal::ReturnAction<R>'
r'.*gmock-actions\.h.*error: invalid conversion from '
'::operator testing::Action<Func>
\
(
\
) const.*
\n
'
+
_FILE_LINE_RE
+
r'instantiated from here\n'
r'.*gmock-port\.h.*error: invalid conversion from '
r'\'long int\' to \'(?P<type>.+\*)'
)
r'\'long int\' to \'(?P<type>.+\*)'
)
diagnosis
=
"""
diagnosis
=
"""
You are probably calling Return(NULL) and the compiler isn't sure how to turn
You are probably calling Return(NULL) and the compiler isn't sure how to turn
...
...
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