Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
44059067
Commit
44059067
authored
Feb 20, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coverage: add "file_locator" attribute to enable XML reporting
parent
39dedc8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Cython/Coverage.py
Cython/Coverage.py
+4
-1
No files found.
Cython/Coverage.py
View file @
44059067
...
@@ -10,9 +10,10 @@ from collections import defaultdict
...
@@ -10,9 +10,10 @@ from collections import defaultdict
try
:
try
:
from
coverage.plugin
import
CoveragePlugin
,
FileTracer
,
FileReporter
from
coverage.plugin
import
CoveragePlugin
,
FileTracer
,
FileReporter
from
coverage.files
import
FileLocator
except
ImportError
:
except
ImportError
:
# version too old?
# version too old?
CoveragePlugin
=
FileTracer
=
FileReporter
=
object
CoveragePlugin
=
FileTracer
=
FileReporter
=
FileLocator
=
object
from
.
import
__version__
from
.
import
__version__
...
@@ -179,6 +180,8 @@ class CythonModuleReporter(FileReporter):
...
@@ -179,6 +180,8 @@ class CythonModuleReporter(FileReporter):
"""
"""
Provide detailed trace information for one source file to coverage.py.
Provide detailed trace information for one source file to coverage.py.
"""
"""
file_locator
=
FileLocator
()
def
__init__
(
self
,
c_file
,
source_file
,
rel_file_path
,
code
,
excluded
):
def
__init__
(
self
,
c_file
,
source_file
,
rel_file_path
,
code
,
excluded
):
super
(
CythonModuleReporter
,
self
).
__init__
(
source_file
)
super
(
CythonModuleReporter
,
self
).
__init__
(
source_file
)
self
.
name
=
rel_file_path
self
.
name
=
rel_file_path
...
...
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