< Summary

Class:QuestSection
Assembly:QuestsModels
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Models/Quests/QuestSection.cs
Covered lines:2
Uncovered lines:0
Coverable lines:2
Total lines:16
Line coverage:100% (2 of 2)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Models/Quests/QuestSection.cs

#LineLine coverage
 1using System.Linq;
 2
 3[System.Serializable]
 4public class QuestSection
 5{
 6    public string id;
 7    public string name;
 8    public float progress;
 9    public QuestTask[] tasks;
 10
 11    public bool TryGetTask(string taskId, out QuestTask task)
 12    {
 613        task = tasks.FirstOrDefault(x => x.id == taskId);
 314        return task != null;
 15    }
 16}