github
1517 of 3261 branches covered (46.52%)
Branch coverage included in aggregate %.
72 of 78 new or added lines in 5 files covered. (92.31%)
6267 of 11028 relevant lines covered (56.83%)
8080.03 hits per line
1 |
using System;
|
|
2 |
|
|
3 |
namespace ImperatorToCK3.CK3.Titles;
|
|
4 |
|
|
5 |
public static class TitleRankUtils { |
|
|
public static TitleRank CharToTitleRank(char c) { |
3,611✔ |
|
return c switch { |
|
|
'e' => TitleRank.empire,
|
89✔ |
|
'k' => TitleRank.kingdom,
|
2,509✔ |
|
'd' => TitleRank.duchy,
|
1,013✔ |
NEW
|
'c' => TitleRank.county,
|
× |
NEW
|
'b' => TitleRank.barony,
|
× |
NEW
|
_ => throw new ArgumentOutOfRangeException(nameof(c)) |
× |
|
}; |
3,611✔ |
|
} |
3,611✔ |
16 |
} |