< Summary

Class:DCL.Tutorial.TutorialView
Assembly:Onboarding
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Tutorial/Scripts/TutorialView.cs
Covered lines:4
Uncovered lines:2
Coverable lines:6
Total lines:43
Line coverage:66.6% (4 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ConfigureView(...)0%110100%
SetTutorialEnabled(...)0%2100%
SetTutorialEnabledForUsersThatAlreadyDidTheTutorial(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Tutorial/Scripts/TutorialView.cs

#LineLine coverage
 1using Cinemachine;
 2using UnityEngine;
 3using UnityEngine.UI;
 4
 5namespace DCL.Tutorial
 6{
 7    public class TutorialView : MonoBehaviour
 8    {
 9        [Header("General Configuration")]
 10        [SerializeField]
 11        internal TutorialSettings configuration;
 12
 13        [Header("3D Model Teacher references")]
 14        [SerializeField]
 15        internal Camera teacherCamera;
 16
 17        [SerializeField]
 18        internal RawImage teacherRawImage;
 19
 20        [SerializeField]
 21        internal TutorialTeacher teacher;
 22
 23        [SerializeField]
 24        internal Canvas teacherCanvas;
 25
 26        [Header("Eagle Eye Camera references")]
 27        [SerializeField]
 28        internal CinemachineVirtualCamera eagleEyeCamera;
 29
 30        internal TutorialController tutorialController;
 31
 32        internal void ConfigureView(TutorialController tutorialController)
 33        {
 7834            this.tutorialController = tutorialController;
 7835            configuration.ConfigureTeacher(teacherCamera, teacherRawImage, teacher, teacherCanvas);
 7836            configuration.ConfigureEagleEyeCamera(eagleEyeCamera);
 7837        }
 38
 039        public void SetTutorialEnabled(string json) { tutorialController.SetTutorialEnabled(json); }
 40
 041        public void SetTutorialEnabledForUsersThatAlreadyDidTheTutorial(string json) { tutorialController.SetTutorialEna
 42    }
 43}