github
2058 of 3728 branches covered (55.2%)
Branch coverage included in aggregate %.
5 of 33 new or added lines in 2 files covered. (15.15%)
1925 existing lines in 247 files now uncovered.8568 of 12829 relevant lines covered (66.79%)
126110.59 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 |
{ |
1,139,288✔ |
9 |
var survivalModule = person.GetModuleSafe<ISurvivalModule>(); |
1,139,288✔ |
10 |
if (survivalModule is null)
|
|
UNCOV
11
|
{ |
× |
12 |
// Те, у кого нет модуля выживания, не могут умереть.
|
|
UNCOV
13
|
return false; |
× |
14 |
} |
|
15 |
|
|
16 |
return survivalModule.IsDead;
|
1,139,288✔ |
17 |
} |
1,139,288✔ |
18 |
} |
|
19 |
} |