github
501 of 630 branches covered (79.52%)
Branch coverage included in aggregate %.
175 of 203 new or added lines in 21 files covered. (86.21%)
93 existing lines in 13 files now uncovered.2875 of 3213 relevant lines covered (89.48%)
22.02 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 |
} |