< Summary

Class:DCL.Components.GLTFShape
Assembly:MainScripts
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/LoadableShapes/GLTFShape.cs
Covered lines:3
Uncovered lines:6
Coverable lines:9
Total lines:29
Line coverage:33.3% (3 of 9)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GLTFShape()0%110100%
GetClassId()0%110100%
ToString()0%30500%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/LoadableShapes/GLTFShape.cs

#LineLine coverage
 1using DCL.Controllers;
 2using DCL.Models;
 3
 4namespace DCL.Components
 5{
 6    public class GLTFShape : LoadableShape<LoadWrapper_GLTF, LoadableShape.Model>
 7    {
 888        public override string componentName => "GLTF Shape";
 9
 16610        public GLTFShape() { }
 11
 6912        public override int GetClassId() { return (int) CLASS_ID.GLTF_SHAPE; }
 13
 14        public override string ToString()
 15        {
 016            if (scene == null || scene.contentProvider == null || model == null)
 017                return base.ToString();
 18
 19            string fullUrl;
 20
 021            bool found = scene.contentProvider.TryGetContentsUrl(model.src, out fullUrl);
 22
 023            if (!found)
 024                fullUrl = "Not found!";
 25
 026            return $"{componentName} (src = {model.src}, full url = {fullUrl}";
 27        }
 28    }
 29}