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