< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Payload()0%2100%
SetLoadingScreen(...)0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/LoadingHUD/Bridge/LoadingBridge.cs

#LineLine coverage
 1using System;
 2using DCL;
 3using UnityEngine;
 4
 5public class LoadingBridge : MonoBehaviour
 6{
 7    [Serializable]
 8    public class Payload
 9    {
 10        public bool isVisible = false;
 011        public string message = "";
 12        public bool showTips = false;
 13    }
 14
 15    public void SetLoadingScreen(string jsonMessage)
 16    {
 017        Payload payload = JsonUtility.FromJson<Payload>(jsonMessage);
 018        DataStore.i.HUDs.loadingHUD.visible.Set(payload.isVisible);
 19
 020        if (!string.IsNullOrEmpty(payload.message))
 021            DataStore.i.HUDs.loadingHUD.message.Set(payload.message);
 022        DataStore.i.HUDs.loadingHUD.showTips.Set(payload.showTips);
 023    }
 24}