< Summary

Class:ECSTransformParentingSystem
Assembly:DCL.ECSComponents.Transform.System
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/Transform/System/ECSTransformParentingSystem.cs
Covered lines:7
Uncovered lines:1
Coverable lines:8
Total lines:22
Line coverage:87.5% (7 of 8)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Update()0%5.025090%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/Transform/System/ECSTransformParentingSystem.cs

#LineLine coverage
 1public static class ECSTransformParentingSystem
 2{
 3    public static void Update()
 4    {
 25        if (ECSTransformUtils.orphanEntities == null || ECSTransformUtils.orphanEntities.Count == 0)
 6        {
 07            return;
 8        }
 9
 210        int count = ECSTransformUtils.orphanEntities.Count;
 11
 812        for (int i = count - 1; i >= 0; i--)
 13        {
 214            var data = ECSTransformUtils.orphanEntities.Pairs[i].value;
 15
 216            if (ECSTransformUtils.SetParent(data.scene, data.entity, data.parentId))
 17            {
 118                ECSTransformUtils.orphanEntities.RemoveAt(i);
 19            }
 20        }
 221    }
 22}

Methods/Properties

Update()