< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Initialize(...)0%2100%
Dispose()0%2100%
PublishStart()0%110100%
PublishEnd(...)0%110100%
SetPercentage(...)0%110100%

File(s)

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

#LineLine coverage
 1public interface IPublishPopupController
 2{
 3    public float currentProgress { get; }
 4
 5    void Initialize(IPublishPopupView publishPopupView);
 6    void Dispose();
 7    void PublishStart();
 8    void PublishEnd(bool isOk, string message);
 9    void SetPercentage(float newValue);
 10}
 11
 12public class PublishPopupController : IPublishPopupController
 13{
 014    public float currentProgress => publishPopupView.currentProgress;
 15
 16    internal IPublishPopupView publishPopupView;
 17
 018    public void Initialize(IPublishPopupView publishPopupView) { this.publishPopupView = publishPopupView; }
 19
 020    public void Dispose() { }
 21
 22    public void PublishStart()
 23    {
 124        publishPopupView.PublishStart();
 125        SetPercentage(0f);
 126    }
 27
 428    public void PublishEnd(bool isOk, string message) { publishPopupView.PublishEnd(isOk, message); }
 29
 430    public void SetPercentage(float newValue) { publishPopupView.SetPercentage(newValue); }
 31}