< Summary

Class:BIWController
Assembly:BuilderInWorld
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/BuilderInWorld/Scripts/Controllers/BIWController.cs
Covered lines:6
Uncovered lines:7
Coverable lines:13
Total lines:38
Line coverage:46.1% (6 of 13)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Initialize(...)0%110100%
EnterEditMode(...)0%110100%
ExitEditMode()0%2100%
OnGUI()0%2100%
LateUpdate()0%2100%
Update()0%2100%
Dispose()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/BuilderInWorld/Scripts/Controllers/BIWController.cs

#LineLine coverage
 1using DCL.Controllers;
 2using System.Collections;
 3using System.Collections.Generic;
 4using DCL.Builder;
 5using UnityEngine;
 6
 7public abstract class BIWController : IBIWController
 8{
 9    internal ParcelScene sceneToEdit;
 10
 11    protected bool isEditModeActive = false;
 12    protected IContext context;
 13    public virtual void Initialize(IContext context)
 14    {
 915        this.context = context;
 916        isEditModeActive = false;
 917    }
 18
 19    public virtual void EnterEditMode(IParcelScene scene)
 20    {
 22521        this.sceneToEdit = (ParcelScene)scene;
 22522        isEditModeActive = true;
 22523    }
 24
 25    public virtual void ExitEditMode()
 26    {
 027        isEditModeActive = false;
 028        sceneToEdit = null;
 029    }
 30
 031    public virtual void OnGUI() { }
 32
 033    public virtual void LateUpdate() { }
 34
 035    public virtual void Update() { }
 36
 037    public virtual void Dispose() { }
 38}