< Summary

Class:RendererState
Assembly:ScriptableObjects
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/ScriptableObject/RendererState.cs
Covered lines:2
Uncovered lines:0
Coverable lines:2
Total lines:13
Line coverage:100% (2 of 2)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/ScriptableObject/RendererState.cs

#LineLine coverage
 1using UnityEngine;
 2using System;
 3
 4[CreateAssetMenu(fileName = "RendererState", menuName = "RendererState")]
 5public class RendererState : BooleanVariable
 6{
 7    public event Action<object> OnLockAdded;
 8    public event Action<object> OnLockRemoved;
 9
 159610    public void AddLock(object id) { OnLockAdded?.Invoke(id); }
 11
 33012    public void RemoveLock(object id) { OnLockRemoved?.Invoke(id); }
 13}