< Summary

Class:SaveHUDController
Assembly:BuildModeHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/BuilderInWorld/HUD/BuildModeHUD/Scripts/Common/SaveHUDController.cs
Covered lines:2
Uncovered lines:3
Coverable lines:5
Total lines:25
Line coverage:40% (2 of 5)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Initialize(...)0%2100%
Dispose()0%2100%
SceneStateSave()0%110100%
StopAnimation()0%110100%
SetSaveViewByEntityListOpen(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/BuilderInWorld/HUD/BuildModeHUD/Scripts/Common/SaveHUDController.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public interface ISaveHUDController
 6{
 7    void Initialize(ISaveHUDView publishBtnView);
 8    void Dispose();
 9    void SceneStateSave();
 10    void StopAnimation();
 11    void SetSaveViewByEntityListOpen(bool isOpen);
 12}
 13
 14public class SaveHUDController : ISaveHUDController
 15{
 16    internal ISaveHUDView view;
 17
 018    public void Initialize(ISaveHUDView saveView) { view = saveView; }
 19
 020    public void Dispose() { }
 221    public void SceneStateSave() { view.SceneStateSaved(); }
 222    public void StopAnimation() { view.StopAnimation(); }
 23
 024    public void SetSaveViewByEntityListOpen(bool isOpen) { view.SetViewByEntityListOpen(isOpen); }
 25}