github
1314 of 3642 branches covered (36.08%)
Branch coverage included in aggregate %.
17 of 43 new or added lines in 4 files covered. (39.53%)
3138 existing lines in 160 files now uncovered.4965 of 12149 relevant lines covered (40.87%)
5600.46 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,917✔ |
9 |
var survivalModule = person.GetModuleSafe<ISurvivalModule>(); |
111,917✔ |
10 |
if (survivalModule is null)
|
|
UNCOV
11
|
{ |
× |
12 |
// Те, у кого нет модуля выживания, не могут умереть.
|
|
UNCOV
13
|
return false; |
× |
14 |
} |
|
15 |
|
|
16 |
return survivalModule.IsDead;
|
111,917✔ |
17 |
} |
111,917✔ |
18 |
} |
|
19 |
} |