< Summary

Class:DCL.Controllers.LoadingScreenV2.HintSceneParserUtil
Assembly:DCL.LoadingScreenV2
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/LoadingScreenV2/HintServiceScripts/HintSceneParserUtil.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:26
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:1
Method coverage:0% (0 of 1)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ParseJsonToHints(...)0%20400%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/LoadingScreenV2/HintServiceScripts/HintSceneParserUtil.cs

#LineLine coverage
 1using DCL.Models;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5namespace DCL.Controllers.LoadingScreenV2
 6{
 7    /// <summary>
 8    ///     The HintSceneParserUtil class is a utility class designed to handle the deserialization and conversion of JS
 9    ///     If the parsing process encounters null values or an absence of loading screen hints, it will return an empty
 10    /// </summary>
 11    public class HintSceneParserUtil
 12    {
 13        public static List<Hint> ParseJsonToHints(string json)
 14        {
 015            var hints = new List<Hint>();
 016            LoadParcelScenesMessage.UnityParcelScene sceneJson = JsonUtility.FromJson<LoadParcelScenesMessage.UnityParce
 17
 018            if (sceneJson == null || sceneJson.loadingScreenHints == null)
 019                return hints;
 20
 021            foreach (Hint hint in sceneJson.loadingScreenHints) { hints.Add(new Hint(hint.TextureUrl, hint.Title, hint.B
 22
 023            return hints;
 24        }
 25    }
 26}

Methods/Properties

ParseJsonToHints(System.String)