< Summary

Class:MainScripts.DCL.Utils.DesktopUtils
Assembly:DesktopUtils
File(s):/tmp/workspace/explorer-desktop/unity-renderer-desktop/Assets/Scripts/MainScripts/DCL/Utils/DesktopUtils.cs
Covered lines:0
Uncovered lines:2
Coverable lines:2
Total lines:18
Line coverage:0% (0 of 2)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Quit()0%2100%

File(s)

/tmp/workspace/explorer-desktop/unity-renderer-desktop/Assets/Scripts/MainScripts/DCL/Utils/DesktopUtils.cs

#LineLine coverage
 1using UnityEngine;
 2
 3namespace MainScripts.DCL.Utils
 4{
 5    public static class DesktopUtils
 6    {
 7        public static void Quit()
 8        {
 9#if UNITY_EDITOR
 10            // Application.Quit() does not work in the editor so
 11            // UnityEditor.EditorApplication.isPlaying need to be set to false to end the game
 012            UnityEditor.EditorApplication.isPlaying = false;
 13#else
 14            Application.Quit();
 15#endif
 016        }
 17    }
 18}

Methods/Properties

Quit()