< Summary

Class:DCL.ContentProvider_Dummy
Assembly:ContentProvider
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/ContentProvider/ContentProvider_Dummy.cs
Covered lines:7
Uncovered lines:3
Coverable lines:10
Total lines:31
Line coverage:70% (7 of 10)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
HasContentsUrl(...)0%110100%
TryGetContentsUrl(...)0%4.594066.67%

File(s)

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

#LineLine coverage
 1using UnityEngine;
 2
 3namespace DCL
 4{
 5    public class ContentProvider_Dummy : ContentProvider
 6    {
 87        public override bool HasContentsUrl(string url) { return !string.IsNullOrEmpty(url); }
 8
 9        public override bool TryGetContentsUrl(string url, out string result)
 10        {
 3911            result = url;
 12
 3913            if (string.IsNullOrEmpty(url))
 14            {
 015                return false;
 16            }
 17
 3918            if (!string.IsNullOrEmpty(baseUrl))
 019                result = baseUrl + "/" + url;
 20            else
 3921                result = url;
 22
 3923            if (VERBOSE)
 24            {
 025                Debug.Log($">>> GetContentsURL from ... {url} ... RESULTING URL... = {result}");
 26            }
 27
 3928            return true;
 29        }
 30    }
 31}