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
662d8a23
"vscode:/vscode.git/clone" did not exist on "df157130cbaebd7b0a1840eef607e768b729f0e7"
Commit
662d8a23
authored
Sep 29, 2010
by
vladlosev
Browse files
Factors out email address in Google Mock Doctor messages.
parent
d43acacf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
scripts/gmock_doctor.py
scripts/gmock_doctor.py
+14
-10
No files found.
scripts/gmock_doctor.py
View file @
662d8a23
...
...
@@ -38,6 +38,8 @@ import sys
_VERSION
=
'1.0.3'
_EMAIL
=
'googlemock@googlegroups.com'
_COMMON_GMOCK_SYMBOLS
=
[
# Matchers
'_'
,
...
...
@@ -563,16 +565,17 @@ def main():
diagnoses
=
Diagnose
(
msg
)
count
=
len
(
diagnoses
)
if
not
count
:
print
'
\n
Gcc complained:'
print
'8<------------------------------------------------------------'
print
msg
print
'------------------------------------------------------------>8'
print
"""
print
(
"""
Your compiler complained:
8<------------------------------------------------------------
%s
------------------------------------------------------------>8
Uh-oh, I'm not smart enough to figure out what the problem is. :-(
However...
If you send your source code and the compiler's error messages to
googlemock@googlegroups.com
, you can be helped and I can get smarter --
win-win for us!"""
%s
, you can be helped and I can get smarter --
win-win for us!"""
%
(
msg
,
_EMAIL
))
else
:
print
'------------------------------------------------------------'
print
'Your code appears to have the following'
,
...
...
@@ -586,10 +589,11 @@ win-win for us!"""
if
count
>
1
:
print
'
\n
#%s:'
%
(
i
,)
print
d
print
"""
print
(
"""
How did I do? If you think I'm wrong or unhelpful, please send your
source code and compiler's error messages to googlemock@googlegroups.com.
Then you can be helped and I can get smarter -- I promise I won't be upset!"""
source code and the compiler's error messages to %s.
Then you can be helped and I can get smarter -- I promise I won't be upset!"""
%
_EMAIL
)
if
__name__
==
'__main__'
:
...
...
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