< Summary

Class:DCL.PlatformContextFactory
Assembly:PlatformContextFactory
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Environment/Factories/PlatformContextFactory/PlatformContextFactory.cs
Covered lines:3
Uncovered lines:1
Coverable lines:4
Total lines:32
Line coverage:75% (3 of 4)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Environment/Factories/PlatformContextFactory/PlatformContextFactory.cs

#LineLine coverage
 1using DCL.Rendering;
 2using UnityEngine;
 3
 4namespace DCL
 5{
 6    public static class PlatformContextFactory
 7    {
 8        public static PlatformContext CreateDefault()
 9        {
 69510            if (SceneReferences.i != null)
 69511                return CreateDefault(SceneReferences.i.bridgeGameObject);
 12
 013            return CreateDefault(new GameObject("Bridges"));
 14        }
 15
 16        public static PlatformContext CreateDefault(GameObject bridgesGameObject)
 17        {
 69518            return new PlatformContext(
 19                memoryManager: new MemoryManager(),
 20                cullingController: CullingController.Create(),
 21                clipboard: Clipboard.Create(),
 22                physicsSyncController: new PhysicsSyncController(),
 23                parcelScenesCleaner: new ParcelScenesCleaner(),
 24                webRequest: WebRequestController.Create(),
 25                serviceProviders: new ServiceProviders(),
 26                idleChecker: new IdleChecker(),
 27                avatarsLODController: new AvatarsLODController(),
 28                featureFlagController: new FeatureFlagController(bridgesGameObject),
 29                updateEventHandler: new UpdateEventHandler());
 30        }
 31    }
 32}