< Summary

Class:BIWEntityAction
Assembly:BuilderInWorld
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/BuilderInWorld/Scripts/ActionController/BIWEntityAction.cs
Covered lines:1
Uncovered lines:15
Coverable lines:16
Total lines:36
Line coverage:6.2% (1 of 16)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/BuilderInWorld/Scripts/ActionController/BIWEntityAction.cs

#LineLine coverage
 1using DCL.Models;
 2using System.Collections;
 3using System.Collections.Generic;
 4using UnityEngine;
 5
 6public class BIWEntityAction
 7{
 8    public long entityId;
 9
 10    public object oldValue;
 11    public object newValue;
 12
 013    public BIWEntityAction(long entityId) { this.entityId = entityId; }
 14
 015    public BIWEntityAction(long entityId, object oldValue, object newValue)
 16    {
 017        this.entityId = entityId;
 018        this.oldValue = oldValue;
 019        this.newValue = newValue;
 020    }
 21
 022    public BIWEntityAction(object oldValue, object newValue)
 23    {
 024        this.oldValue = oldValue;
 025        this.newValue = newValue;
 026    }
 27
 1528    public BIWEntityAction(IDCLEntity entity) { this.entityId = entity.entityId; }
 29
 030    public BIWEntityAction(IDCLEntity entity, object oldValue, object newValue)
 31    {
 032        this.entityId = entity.entityId;
 033        this.oldValue = oldValue;
 034        this.newValue = newValue;
 035    }
 36}