github
1287 of 3642 branches covered (35.34%)
Branch coverage included in aggregate %.
7 of 43 new or added lines in 4 files covered. (16.28%)
3205 existing lines in 160 files now uncovered.4873 of 12149 relevant lines covered (40.11%)
5604.12 hits per line
1 |
namespace Zilon.Core.MapGenerators.RoomStyle |
|
2 |
{ |
|
3 |
public sealed class RoomMatrix |
|
4 |
{ |
|
5 |
private readonly Room[,] _rooms;
|
|
6 |
|
|
UNCOV
7
|
public RoomMatrix(int size) |
× |
UNCOV
8
|
{ |
× |
UNCOV
9
|
_rooms = new Room[size, size];
|
× |
UNCOV
10
|
} |
× |
11 |
|
|
12 |
public Room GetRoom(int x, int y) |
|
13 |
{ |
× |
14 |
return _rooms[x, y];
|
× |
15 |
} |
× |
16 |
|
|
17 |
public void SetRoom(int x, int y, Room room) |
|
UNCOV
18
|
{ |
× |
UNCOV
19
|
_rooms[x, y] = room; |
× |
UNCOV
20
|
} |
× |
21 |
} |
|
22 |
} |