< Summary

Class:MapInfoHandler
Assembly:ExploreV2
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ExploreV2/Scripts/Common/Handlers/MapInfoHandler.cs
Covered lines:6
Uncovered lines:8
Coverable lines:14
Total lines:29
Line coverage:42.8% (6 of 14)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SetMinimapSceneInfo(...)0%110100%
ContainCoords(...)0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ExploreV2/Scripts/Common/Handlers/MapInfoHandler.cs

#LineLine coverage
 1using System;
 2using System.Linq;
 3using UnityEngine;
 4
 5public class MapInfoHandler : IMapDataView
 6{
 07    public Vector2Int baseCoord { private set; get; }
 08    public string name { private set; get; }
 09    public string creator { private set; get; }
 010    public string description { private set; get; }
 11
 012    public Vector2Int[] parcels { private set; get; }
 13
 14    public void SetMinimapSceneInfo(HotScenesController.HotSceneInfo sceneInfo)
 15    {
 1216        baseCoord = sceneInfo.baseCoords;
 1217        name = sceneInfo.name;
 1218        creator = sceneInfo.creator;
 1219        description = sceneInfo.description;
 1220        parcels = sceneInfo.parcels;
 1221    }
 22
 23    public bool ContainCoords(Vector2Int coords)
 24    {
 025        if (parcels == null)
 026            return false;
 027        return parcels.Contains(coords);
 28    }
 29}