github
2251 of 3728 branches covered (60.38%)
Branch coverage included in aggregate %.
10 of 33 new or added lines in 2 files covered. (30.3%)
1229 existing lines in 221 files now uncovered.9272 of 12814 relevant lines covered (72.36%)
335958.3 hits per line
1 |
namespace Zilon.Core.MapGenerators.RoomStyle |
|
2 |
{ |
|
3 |
public sealed class RoomMatrix |
|
4 |
{ |
|
5 |
private readonly Room[,] _rooms;
|
|
6 |
|
|
7 |
public RoomMatrix(int size) |
13✔ |
8 |
{ |
13✔ |
9 |
_rooms = new Room[size, size];
|
13✔ |
10 |
} |
13✔ |
11 |
|
|
12 |
public Room GetRoom(int x, int y) |
|
UNCOV
13
|
{ |
× |
14 |
return _rooms[x, y];
|
× |
UNCOV
15
|
} |
× |
16 |
|
|
17 |
public void SetRoom(int x, int y, Room room) |
|
18 |
{ |
241✔ |
19 |
_rooms[x, y] = room; |
241✔ |
20 |
} |
241✔ |
21 |
} |
|
22 |
} |