< Summary

Class:DCL.Controllers.GlobalScene
Assembly:MainScripts
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/GlobalScene.cs
Covered lines:10
Uncovered lines:3
Coverable lines:13
Total lines:38
Line coverage:76.9% (10 of 13)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
IsInsideSceneBoundaries(...)0%2100%
IsInsideSceneBoundaries(...)0%110100%
SetData(...)0%220100%
SendMetricsEvent()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/GlobalScene.cs

#LineLine coverage
 1using DCL.Helpers;
 2using DCL.Models;
 3using UnityEngine;
 4
 5namespace DCL.Controllers
 6{
 7    public class GlobalScene : ParcelScene
 8    {
 9        [System.NonSerialized]
 10        public bool isPortableExperience = false;
 11
 12        [System.NonSerialized]
 13        public string iconUrl;
 14
 015        protected override string prettyName => $"{sceneData.id}{ (isPortableExperience ? " (PE)" : "") }";
 16
 017        public override bool IsInsideSceneBoundaries(Vector3 worldPosition, float height = 0f) { return true; }
 18
 219        public override bool IsInsideSceneBoundaries(Vector2Int gridPosition, float height = 0) { return true; }
 20
 21        public override void SetData(LoadParcelScenesMessage.UnityParcelScene data)
 22        {
 123            this.sceneData = data;
 24
 125            contentProvider = new ContentProvider();
 126            contentProvider.baseUrl = data.baseUrl;
 127            contentProvider.contents = data.contents;
 128            contentProvider.BakeHashes();
 29
 130            if (DCLCharacterController.i != null)
 131                gameObject.transform.position = PositionUtils.WorldToUnityPosition(Utils.GridToWorldPosition(data.basePo
 32
 133            DataStore.i.sceneWorldObjects.AddScene(sceneData.id);
 134        }
 35
 036        protected override void SendMetricsEvent() { }
 37    }
 38}