< Summary

Class:GDX.Developer.Reports.BuildVerification.TestScene
Assembly:GDX
File(s):./Packages/com.dotbunny.gdx/GDX/Developer/Reports/BuildVerification/TestScene.cs
Covered lines:0
Uncovered lines:10
Coverable lines:10
Total lines:32
Line coverage:0% (0 of 10)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
TestScene(...)0%2100%
IsValid()0%2100%

File(s)

./Packages/com.dotbunny.gdx/GDX/Developer/Reports/BuildVerification/TestScene.cs

#LineLine coverage
 1// Copyright (c) 2020-2024 dotBunny Inc.
 2// dotBunny licenses this file to you under the BSL-1.0 license.
 3// See the LICENSE file in the project root for more information.
 4
 5using UnityEngine.SceneManagement;
 6
 7namespace GDX.Developer.Reports.BuildVerification
 8{
 9    public readonly struct TestScene
 10    {
 11        public readonly int BuildIndex;
 12        public readonly string ScenePath;
 13        public readonly int LoadTimeout;
 14        public readonly int TestTimeout;
 15        public readonly int UnloadTimeout;
 16
 17        public TestScene(int buildIndex, int loadTimeout = 10000, int testTimeout = 30000, int unloadTimeout = 10000)
 018        {
 019            BuildIndex = buildIndex;
 020            ScenePath = SceneUtility.GetScenePathByBuildIndex(buildIndex);
 21
 022            LoadTimeout = loadTimeout;
 023            TestTimeout = testTimeout;
 024            UnloadTimeout = unloadTimeout;
 025        }
 26
 27        public bool IsValid()
 028        {
 029            return !string.IsNullOrEmpty(ScenePath);
 030        }
 31    }
 32}