< Summary

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

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        public UIShape<ReferencesContainerType, ModelType> uiShapeOwner;
 11
 23412        public UIShapeUpdateHandler(IDelayedComponent owner) : base(owner) { uiShapeOwner = owner as UIShape<ReferencesC
 13
 14        public override IEnumerator ApplyChangesWrapper(BaseModel newModel)
 15        {
 14616            uiShapeOwner.PreApplyChanges(newModel);
 17
 14618            var enumerator = base.ApplyChangesWrapper(newModel);
 19
 14620            if (enumerator != null)
 21            {
 14622                yield return enumerator;
 23            }
 14624        }
 25    }
 26}