github
1314 of 3642 branches covered (36.08%)
Branch coverage included in aggregate %.
17 of 43 new or added lines in 4 files covered. (39.53%)
3138 existing lines in 160 files now uncovered.4965 of 12149 relevant lines covered (40.87%)
5600.46 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 |
} |