< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetPointerEventsForEntity(...)0%220100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/PointerEvents/PointerEventsExtensions.cs

#LineLine coverage
 1using DCL.Controllers;
 2using DCL.ECSRuntime;
 3using DCL.Models;
 4using System.Collections.Generic;
 5
 6namespace DCL.ECSComponents
 7{
 8    public static class PointerEventsExtensions
 9    {
 10        public static IReadOnlyList<PBPointerEvents.Types.Entry> GetPointerEventsForEntity(this ECSComponent<PBPointerEv
 11            IParcelScene scene, IDCLEntity entity)
 12        {
 2213            var componentData = component.Get(scene, entity);
 2214            return componentData?.model.PointerEvents;
 15        }
 16    }
 17}