< Summary

Class:DisablePassportModifier
Assembly:AvatarShape
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/Avatar/AvatarModifiers/modifiers/DisablePassportModifier.cs
Covered lines:0
Uncovered lines:8
Coverable lines:8
Total lines:24
Line coverage:0% (0 of 8)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ApplyModifier(...)0%6200%
RemoveModifier(...)0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/Avatar/AvatarModifiers/modifiers/DisablePassportModifier.cs

#LineLine coverage
 1using DCL;
 2using UnityEngine;
 3
 4public class DisablePassportModifier : AvatarModifier
 5{
 6
 7    public override void ApplyModifier(GameObject avatar)
 8    {
 09        AvatarShape avatarShape = avatar.GetComponent<AvatarShape>();
 010        if (avatarShape != null)
 11        {
 012            avatarShape.DisablePassport();
 13        }
 014    }
 15
 16    public override void RemoveModifier(GameObject avatar)
 17    {
 018        AvatarShape avatarShape = avatar.GetComponent<AvatarShape>();
 019        if (avatarShape != null)
 20        {
 021            avatarShape.EnablePassport();
 22        }
 023    }
 24}