< Summary

Class:DCL.Components.UIShapeUpdateHandler[ReferencesContainerType,ModelType]
Assembly:DCL.Components.UI
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/UI/UIShapeUpdateHandler.cs
Covered lines:8
Uncovered lines:0
Coverable lines:8
Total lines:27
Line coverage:100% (8 of 8)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
UIShapeUpdateHandler(...)0%110100%
ApplyChangesWrapper()0%440100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/UI/UIShapeUpdateHandler.cs

#LineLine coverage
 1using System.Collections;
 2
 3namespace DCL.Components
 4{
 5    public class UIShapeUpdateHandler<ReferencesContainerType, ModelType> : ComponentUpdateHandler
 6        where ReferencesContainerType : UIReferencesContainer
 7        where ModelType : UIShape.Model
 8
 9    {
 10        private readonly UIShape<ReferencesContainerType, ModelType> uiShapeOwner;
 11
 8012        public UIShapeUpdateHandler(IDelayedComponent owner) : base(owner)
 13        {
 8014            uiShapeOwner = owner as UIShape<ReferencesContainerType, ModelType>;
 8015        }
 16
 17        protected override IEnumerator ApplyChangesWrapper(BaseModel newModel)
 18        {
 14919            uiShapeOwner.PreApplyChanges(newModel);
 20
 14921            var enumerator = base.ApplyChangesWrapper(newModel);
 22
 14923            if (enumerator != null)
 14924                yield return enumerator;
 14925        }
 26    }
 27}