< Summary

Class:DCL.ECSRuntime.ECSComponentData[T]
Assembly:DCL.ECSRuntime.Components.Inferfaces
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/ECSRuntime/Components/Interfaces/ECSComponentData.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
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/ECSRuntime/Components/Interfaces/ECSComponentData.cs

#LineLine coverage
 1using DCL.Controllers;
 2using DCL.Models;
 3
 4namespace DCL.ECSRuntime
 5{
 6    public readonly struct ECSComponentData<T>
 7    {
 8        public readonly IParcelScene scene;
 9        public readonly IDCLEntity entity;
 10        public readonly T model;
 11        public readonly IECSComponentHandler<T> handler;
 12
 13        public ECSComponentData(IParcelScene scene, IDCLEntity entity, T model, IECSComponentHandler<T> handler)
 14        {
 254515            this.scene = scene;
 254516            this.entity = entity;
 254517            this.model = model;
 254518            this.handler = handler;
 254519        }
 20
 21        public ECSComponentData<T> With(T newModel)
 22        {
 167823            return new ECSComponentData<T>(scene, entity, newModel, handler);
 24        }
 25    }
 26}