Clover Coverage Report - Atlassian Core
Coverage timestamp:
Sun Nov 30 2008 18:33:35 CST
Overview
Package
File
FRAMES
NO FRAMES
SHOW HELP
Statistics for file ServletContextThreadLocalFilter.java:
Stmts:
8
LOC:
36
Total cmp:
3
Stmts/Method:
8
Branches:
4
NCLOC:
31
Cmp density:
0.38
Methods/Class:
1
Methods:
1
Avg method cmp:
3
Classes:
1
Filtered
Statistics for file ServletContextThreadLocalFilter.java:
Stmts:
8
LOC:
36
Total cmp:
3
Stmts/Method:
8
Branches:
4
NCLOC:
31
Cmp density:
0.38
Methods/Class:
1
Methods:
1
Avg method cmp:
3
Classes:
1
Unfiltered
Legend
line#
hit count
1
86
line hit by 1 or more tests which passed
2
17
line was covered, but not by a test case
3
7
line hit by 1 or more tests which did not pass
4
5
line hit by more than one (selected) test
5
3
line hit by one test only
6
2
line hit by one or more (selected) tests that failed
7
1
line has an expression (e.g. a branch) or statement that was not fully covered
8
0
line was not covered at all
9
line was filtered
Expand All
ServletContextThreadLocalFilter
Line # 12
Total Statements
8
Complexity
3
TOTAL Coverage
0%
0.0
doFilter(ServletRequest,ServletResponse,FilterChain) : void
doFilter(ServletRequest,ServletResponse,FilterChain) : void
14
14
8.0
8
3.0
3
0.0
0%
0.0
No Tests
Collapse All
1
package
com.atlassian.
core
.
filters
;
2
3
import
javax.servlet.ServletRequest;
4
import
javax.servlet.ServletResponse;
5
import
javax.servlet.FilterChain;
6
import
javax.servlet.ServletException;
7
import
javax.servlet.http.HttpServletRequest;
8
import
javax.servlet.http.HttpServletResponse;
9
10
import
java.io.IOException;
11
0%
Uncovered Elements: 13 (13)
Complexity: 3
Complexity Density: 0.38
12
public
class
ServletContextThreadLocalFilter
extends
AbstractFilter
13
{
0%
Uncovered Elements: 12 (12)
Complexity: 3
Complexity Density: 0.38
14
0
public
void
doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
throws
IOException, ServletException
...
15
{
16
0
try
17
{
18
0
if
(servletRequest
instanceof
HttpServletRequest)
19
{
20
0
ServletContextThreadLocal.setRequest((HttpServletRequest) servletRequest);
21
}
22
23
0
if
(servletResponse
instanceof
HttpServletResponse)
24
{
25
0
ServletContextThreadLocal.setResponse((HttpServletResponse) servletResponse);
26
}
27
28
0
filterChain.doFilter(servletRequest, servletResponse);
29
}
30
finally
31
{
32
0
ServletContextThreadLocal.setRequest(
null
);
33
0
ServletContextThreadLocal.setResponse(
null
);
34
}
35
}
36
}
Report generated by
Clover Code Coverage v2.1.0
Sun Nov 30 2008 18:34:39 CST
.
Clover: Commercial License registered to Atlassian.