< Summary

Class:MinimapMetadataController
Assembly:MapRenderer
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/MapRenderer/MinimapMetadataController.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:24
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Awake()0%2100%
UpdateMinimapSceneInformation(...)0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/MapRenderer/MinimapMetadataController.cs

#LineLine coverage
 1using DCL.Helpers;
 2using UnityEngine;
 3
 4public class MinimapMetadataController : MonoBehaviour
 5{
 06    private MinimapMetadata minimapMetadata => MinimapMetadata.GetMetadata();
 07    public static MinimapMetadataController i { get; private set; }
 8
 9    public void Awake()
 10    {
 011        i = this;
 012        minimapMetadata.Clear();
 013    }
 14
 15    public void UpdateMinimapSceneInformation(string scenesInfoJson)
 16    {
 017        var scenesInfo = Utils.ParseJsonArray<MinimapMetadata.MinimapSceneInfo[]>(scenesInfoJson);
 18
 019        foreach (var sceneInfo in scenesInfo)
 20        {
 021            minimapMetadata.AddSceneInfo(sceneInfo);
 22        }
 023    }
 24}