< Summary

Class:UiElementUtils
Assembly:ECSComponents.Utils
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/Utils/UiElementUtils.cs
Covered lines:10
Uncovered lines:0
Coverable lines:10
Total lines:17
Line coverage:100% (10 of 10)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SetElementDefaultStyle(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/Utils/UiElementUtils.cs

#LineLine coverage
 1using UnityEngine.UIElements;
 2
 3public static class UiElementUtils
 4{
 5    public static void SetElementDefaultStyle(IStyle elementStyle)
 6    {
 47        elementStyle.right = 0;
 48        elementStyle.left = 0;
 49        elementStyle.top = 0;
 410        elementStyle.bottom = 0;
 411        elementStyle.width = new StyleLength(StyleKeyword.Auto);
 412        elementStyle.height = new StyleLength(StyleKeyword.Auto);
 413        elementStyle.position = new StyleEnum<Position>(Position.Absolute);
 414        elementStyle.justifyContent = new StyleEnum<Justify>(Justify.Center);
 415        elementStyle.alignItems = new StyleEnum<Align>(Align.Center);
 416    }
 17}