github
2051 of 3728 branches covered (55.02%)
Branch coverage included in aggregate %.
5 of 33 new or added lines in 2 files covered. (15.15%)
1976 existing lines in 246 files now uncovered.8502 of 12814 relevant lines covered (66.35%)
68345.79 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) |
1✔ |
8 |
{ |
1✔ |
9 |
_rooms = new Room[size, size];
|
1✔ |
10 |
} |
1✔ |
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 |
{ |
30✔ |
19 |
_rooms[x, y] = room; |
30✔ |
20 |
} |
30✔ |
21 |
} |
|
22 |
} |