< Summary

Class:DCL.ECSComponents.UIEventsSubscriptions
Assembly:DCL.ECSComponents.UIComponentsUtils
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/UIComponentsUtils/UIEventsSubscriptions.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:22
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
UIEventsSubscriptions()0%2100%
Dispose()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/UIComponentsUtils/UIEventsSubscriptions.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using UnityEngine.Pool;
 4
 5namespace DCL.ECSComponents
 6{
 7    public class UIEventsSubscriptions
 8    {
 09        internal List<IDisposable> list { get; private set; } = ListPool<IDisposable>.Get();
 10
 11        public void Dispose()
 12        {
 013            foreach (IDisposable subscription in list)
 14            {
 015                subscription.Dispose();
 16            }
 17
 018            ListPool<IDisposable>.Release(list);
 019            list = null;
 020        }
 21    }
 22}