< Summary

Class:DCL.Skybox.CopyFunctionality
Assembly:SkyboxEditorAssembly
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/ProceduralSkybox/ToolProceduralSkybox/Scripts/Editor/Procedural Skybox/CopyFunctionality.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:33
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
IsTextureLayerAvailable()0%2100%
IsDomeAvailable()0%2100%
IsSatelliteAvailable()0%2100%
SetTextureLayer(...)0%2100%
GetCopiedTextureLayer()0%2100%
SetDome(...)0%2100%
SetSatellite(...)0%2100%
GetCopiedDome()0%2100%
GetCopiedSatellite()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/ProceduralSkybox/ToolProceduralSkybox/Scripts/Editor/Procedural Skybox/CopyFunctionality.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5namespace DCL.Skybox
 6{
 7    public class CopyFunctionality
 8    {
 9        private TextureLayer copiedLayer;
 10        public Config3DSatellite copiedSatellite;
 11
 012        public bool IsTextureLayerAvailable() { return copiedLayer != null; }
 13
 014        public bool IsDomeAvailable() { return copiedLayer != null; }
 015        public bool IsSatelliteAvailable() { return copiedSatellite != null; }
 16
 017        public void SetTextureLayer(TextureLayer layer) { copiedLayer = layer; }
 18
 019        public TextureLayer GetCopiedTextureLayer() { return copiedLayer; }
 20
 021        public void SetDome(Config3DDome dome) { copiedLayer = dome.layers; }
 22
 023        public void SetSatellite(Config3DSatellite satellite) { copiedSatellite = satellite; }
 24
 25        public Config3DDome GetCopiedDome()
 26        {
 027            Config3DDome dome = new Config3DDome(copiedLayer.nameInEditor);
 028            dome.layers = copiedLayer;
 029            return dome;
 30        }
 031        public Config3DSatellite GetCopiedSatellite() { return copiedSatellite; }
 32    }
 33}