github
1279 of 3642 branches covered (35.12%)
Branch coverage included in aggregate %.
10 of 43 new or added lines in 4 files covered. (23.26%)
3169 existing lines in 162 files now uncovered.4839 of 12149 relevant lines covered (39.83%)
3489.75 hits per line
1 |
using Zilon.Core.PersonModules; |
|
2 |
|
|
3 |
namespace Zilon.Core.Persons
|
|
4 |
{ |
|
5 |
public static class IPersonExtensions |
|
6 |
{ |
|
7 |
public static bool CheckIsDead(this IPerson person) |
|
8 |
{ |
111,927✔ |
9 |
var survivalModule = person.GetModuleSafe<ISurvivalModule>(); |
111,927✔ |
10 |
if (survivalModule is null)
|
|
UNCOV
11
|
{ |
× |
12 |
// Те, у кого нет модуля выживания, не могут умереть.
|
|
UNCOV
13
|
return false; |
× |
14 |
} |
|
15 |
|
|
16 |
return survivalModule.IsDead;
|
111,927✔ |
17 |
} |
111,927✔ |
18 |
} |
|
19 |
} |