github
461 of 580 branches covered (79.48%)
Branch coverage included in aggregate %.
167 of 195 new or added lines in 20 files covered. (85.64%)
94 existing lines in 14 files now uncovered.2724 of 3053 relevant lines covered (89.22%)
23.99 hits per line
| 1 |
using System; |
|
| 2 |
using System.Collections.Generic;
|
|
| 3 |
using System.Text;
|
|
| 4 |
|
|
| 5 |
namespace Kyameru.Component.Error
|
|
| 6 |
{
|
|
| 7 |
public abstract class BaseError |
|
| 8 |
{
|
|
| 9 |
protected readonly Dictionary<string, string> headers; |
|
| 10 |
|
|
|
UNCOV
11
|
public BaseError(Dictionary<string, string> headers) |
× |
|
UNCOV
12
|
{
|
× |
|
UNCOV
13
|
this.headers = headers;
|
× |
|
UNCOV
14
|
} |
× |
| 15 |
|
|
| 16 |
protected bool WillError() |
|
|
UNCOV
17
|
{
|
× |
|
UNCOV
18
|
bool error = false; |
× |
|
UNCOV
19
|
if (bool.TryParse(this.headers["Error"], out error)) |
|
|
UNCOV
20
|
{
|
× |
| 21 |
// do nothing
|
|
|
UNCOV
22
|
} |
× |
| 23 |
|
|
|
UNCOV
24
|
return error;
|
× |
|
UNCOV
25
|
} |
× |
| 26 |
} |
|
| 27 |
} |