< Summary

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

Metrics

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

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 string entityId;
 9
 10    public object oldValue;
 11    public object newValue;
 12
 013    public BIWEntityAction(string entityId) { this.entityId = entityId; }
 14
 115    public BIWEntityAction(string entityId, object oldValue, object newValue)
 16    {
 117        this.entityId = entityId;
 118        this.oldValue = oldValue;
 119        this.newValue = newValue;
 120    }
 21
 322    public BIWEntityAction(object oldValue, object newValue)
 23    {
 324        this.oldValue = oldValue;
 325        this.newValue = newValue;
 326    }
 27
 1528    public BIWEntityAction(IDCLEntity entity) { this.entityId = entity.entityId; }
 29
 330    public BIWEntityAction(IDCLEntity entity, object oldValue, object newValue)
 31    {
 332        this.entityId = entity.entityId;
 333        this.oldValue = oldValue;
 334        this.newValue = newValue;
 335    }
 36}