< Summary

Class:SectionScenesView
Assembly:BuilderProjectsPanel
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BuilderProjectsPanel/Scripts/Views/MenuSections/SectionScenesView.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:34
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnDestroy()0%110100%
Dispose()0%220100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BuilderProjectsPanel/Scripts/Views/MenuSections/SectionScenesView.cs

#LineLine coverage
 1using System;
 2using UnityEngine;
 3using UnityEngine.UI;
 4
 5public class SectionScenesView : MonoBehaviour, IDisposable
 6{
 7    [Header("Cards Containers")]
 8    [SerializeField] internal Transform deployedSceneContainer;
 9    [SerializeField] internal Transform projectSceneContainer;
 10
 11    [Header("Screens")]
 12    [SerializeField] internal GameObject emptyScreen;
 13    [SerializeField] internal GameObject contentScreen;
 14
 15    [Header("Group Containers")]
 16    [SerializeField] internal GameObject inWorldContainer;
 17    [SerializeField] internal GameObject projectsContainer;
 18
 19    [Header("Buttons")]
 20    [SerializeField] internal Button btnInWorldViewAll;
 21    [SerializeField] internal Button btnProjectsViewAll;
 22
 23    private bool isDestroyed = false;
 24
 625    private void OnDestroy() { isDestroyed = true; }
 26
 27    public void Dispose()
 28    {
 329        if (!isDestroyed)
 30        {
 331            Destroy(gameObject);
 32        }
 333    }
 34}

Methods/Properties

OnDestroy()
Dispose()