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
Boxiang Sun
cython
Commits
e673f847
Commit
e673f847
authored
Feb 26, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend red/green coverage marker in annotated HTML over C code lines
parent
ce167839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Cython/Compiler/Annotate.py
Cython/Compiler/Annotate.py
+5
-2
No files found.
Cython/Compiler/Annotate.py
View file @
e673f847
...
...
@@ -78,10 +78,12 @@ class AnnotationCCodeWriter(CCodeWriter):
.cython.tag { }
.cython.line { margin: 0em }
.cython.code
{ font-size: 9; color: #444444; display: none; margin: 0px 0px 0px 20px;
}
.cython.code
{ font-size: 9; color: #444444; display: none; margin: 0px 0px 0px 8px; border-left: 8px none;
}
.cython.line .run { background-color: #B0FFB0; }
.cython.line .mis { background-color: #FFB0B0; }
.cython.code.run { border-left: 8px solid #B0FFB0; }
.cython.code.mis { border-left: 8px solid #FFB0B0; }
.cython.code .py_c_api { color: red; }
.cython.code .py_macro_api { color: #FF7000; }
...
...
@@ -261,7 +263,8 @@ class AnnotationCCodeWriter(CCodeWriter):
onclick
=
onclick
,
))
if
c_code
:
outlist
.
append
(
u"<pre class='cython code score-%s'>%s</pre>"
%
(
score
,
c_code
))
outlist
.
append
(
u"<pre class='cython code score-{score} {covered}'>{code}</pre>"
.
format
(
score
=
score
,
covered
=
covered
,
code
=
c_code
))
outlist
.
append
(
u"</div>"
)
return
outlist
...
...
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