< Summary

Class:DCL.Helpers.TestAssetsUtils
Assembly:TestAssetsUtils
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/Utils/TestAssetsUtils/TestAssetsUtils.cs
Covered lines:5
Uncovered lines:1
Coverable lines:6
Total lines:23
Line coverage:83.3% (5 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetPathRaw()0%110100%
GetPath(...)0%2.032080%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/Utils/TestAssetsUtils/TestAssetsUtils.cs

#LineLine coverage
 1using UnityEngine;
 2
 3namespace DCL.Helpers
 4{
 5    public static class TestAssetsUtils
 6    {
 17957        public static string GetPathRaw() { return Application.dataPath + "/../TestResources"; }
 8
 9        public static string GetPath(bool useWebServerPath = false)
 10        {
 176911            if (useWebServerPath)
 12            {
 013                return "http://127.0.0.1:9991";
 14            }
 15            else
 16            {
 176917                var uri = new System.Uri(GetPathRaw());
 176918                var converted = uri.AbsoluteUri;
 176919                return converted;
 20            }
 21        }
 22    }
 23}