< Summary

Class:DCL.Huds.QuestsTracker.QuestNotification_QuestCompleted
Assembly:QuestsTrackerHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/QuestsTrackerHUD/QuestNotification_QuestCompleted.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:24
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Populate(...)0%110100%
Show()0%110100%
Dispose()0%110100%
Waiter()0%330100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/QuestsTrackerHUD/QuestNotification_QuestCompleted.cs

#LineLine coverage
 1using System.Collections;
 2using DCL.Huds.QuestsTracker;
 3using TMPro;
 4using UnityEngine;
 5
 6namespace DCL.Huds.QuestsTracker
 7{
 8    public class QuestNotification_QuestCompleted : MonoBehaviour, IQuestNotification
 9    {
 10        [SerializeField] internal TextMeshProUGUI questName;
 11        [SerializeField] internal AudioEvent questCompleteAudioEvent;
 12
 613        public void Populate(QuestModel questModel) { questName.text = questModel.name; }
 14
 15        public void Show()
 16        {
 217            gameObject.SetActive(true);
 218            questCompleteAudioEvent.Play();
 219        }
 20
 621        public void Dispose() { Destroy(gameObject); }
 422        public IEnumerator Waiter() { yield return WaitForSecondsCache.Get(QuestsNotificationsController.DEFAULT_NOTIFIC
 23    }
 24}