Skip to content

Commit

Permalink
Fix dopey mistake by text editor
Browse files Browse the repository at this point in the history
* Accidentally used the wrong file when making changes
  • Loading branch information
8W9aG committed Jan 5, 2016
1 parent 0290314 commit eeda49c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 268 deletions.
20 changes: 7 additions & 13 deletions testinggame/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _find_xctest_tests(blame_lines, names, source, xctestsuperclasses):
return names


def _find_java_tests(blame_lines, names, source):
def _find_java_tests(blame_lines, names):
"""
Finds the number of Java test cases per user. This will find tests both
with the @Test annotation and the standard test methods.
Expand All @@ -83,7 +83,6 @@ def _find_java_tests(blame_lines, names, source):
blame line.
names: The current dictionary containing the usernames as a key and the
number of tests as a value.
source: A string containing the raw source code for the file.
Returns:
A dictionary built off the names argument containing the usernames as a
key and the number of tests as a value.
Expand All @@ -104,7 +103,7 @@ def _find_java_tests(blame_lines, names, source):
return names


def _find_boost_tests(blame_lines, names, source):
def _find_boost_tests(blame_lines, names):
"""
Finds the number of Boost test cases per user.
Expand All @@ -113,7 +112,6 @@ def _find_boost_tests(blame_lines, names, source):
blame line.
names: The current dictionary containing the usernames as a key and the
number of tests as a value.
source: A string containing the raw source code for the file.
Returns:
A dictionary built off the names argument containing the usernames as a
key and the number of tests as a value.
Expand All @@ -132,7 +130,7 @@ def _find_boost_tests(blame_lines, names, source):
return names


def _find_nose_tests(blame_lines, names, source):
def _find_python_tests(blame_lines, names, source):
"""
Finds the number of python test cases per user.
Expand All @@ -141,7 +139,6 @@ def _find_nose_tests(blame_lines, names, source):
blame line.
names: The current dictionary containing the usernames as a key and the
number of tests as a value.
source: A string containing the raw source code for the file.
Returns:
A dictionary built off the names argument containing the usernames as a
key and the number of tests as a value.
Expand Down Expand Up @@ -204,16 +201,13 @@ def _find_git_status(directory, xctestsuperclasses):
xctestsuperclasses)
if fileextension in java_extensions:
names = _find_java_tests(blame_lines,
names,
source)
names)
if fileextension in cpp_extensions:
names = _find_boost_tests(blame_lines,
names,
source)
names)
if fileextension in python_extensions:
names = _find_nose_tests(blame_lines,
names,
source)
names = _find_python_tests(blame_lines,
names)
except:
'Could not open file: ' + absfile
return names
Expand Down
255 changes: 0 additions & 255 deletions testinggame/testinggame.py

This file was deleted.

0 comments on commit eeda49c

Please sign in to comment.