github
1518 of 3261 branches covered (46.55%)
Branch coverage included in aggregate %.
71 of 78 new or added lines in 5 files covered. (91.03%)
6270 of 11028 relevant lines covered (56.86%)
8077.07 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,693✔ |
|
return c switch { |
|
|
'e' => TitleRank.empire,
|
91✔ |
|
'k' => TitleRank.kingdom,
|
2,566✔ |
|
'd' => TitleRank.duchy,
|
1,036✔ |
NEW
|
'c' => TitleRank.county,
|
× |
NEW
|
'b' => TitleRank.barony,
|
× |
NEW
|
_ => throw new ArgumentOutOfRangeException(nameof(c)) |
× |
|
}; |
3,693✔ |
|
} |
3,693✔ |
16 |
} |