< Summary

Class:DCL.PlatformContext
Assembly:Environment
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Environment/PlatformContext.cs
Covered lines:8
Uncovered lines:6
Coverable lines:14
Total lines:31
Line coverage:57.1% (8 of 14)
Covered branches:0
Total branches:0

Metrics

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

File(s)

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

#LineLine coverage
 1using DCL.Bots;
 2using DCL.Rendering;
 3
 4namespace DCL
 5{
 6    /// <summary>
 7    /// Context related to specific platform handling.
 8    /// Memory, rendering, input, IO and debug systems belong here.
 9    /// </summary>
 10    [System.Obsolete("This is kept for retrocompatibilty and will be removed in the future. Use Environment.i.serviceLoc
 11    public class PlatformContext
 12    {
 13        public ServiceLocator serviceLocator;
 17014        public IMemoryManager memoryManager => serviceLocator.Get<IMemoryManager>();
 113615        public ICullingController cullingController  => serviceLocator.Get<ICullingController>();
 94516        public IParcelScenesCleaner parcelScenesCleaner  => serviceLocator.Get<IParcelScenesCleaner>();
 117        public IClipboard clipboard  => serviceLocator.Get<IClipboard>();
 1896618        public IPhysicsSyncController physicsSyncController  => serviceLocator.Get<IPhysicsSyncController>();
 41519        public IWebRequestController webRequest => serviceLocator.Get<IWebRequestController>();
 61020        public IServiceProviders serviceProviders => serviceLocator.Get<IServiceProviders>();
 021        public IIdleChecker idleChecker => serviceLocator.Get<IIdleChecker>();
 022        public IAvatarsLODController avatarsLODController => serviceLocator.Get<IAvatarsLODController>();
 023        public IFeatureFlagController featureFlagController => serviceLocator.Get<IFeatureFlagController>();
 590624        public IUpdateEventHandler updateEventHandler => serviceLocator.Get<IUpdateEventHandler>();
 25
 026        public PlatformContext (ServiceLocator serviceLocator)
 27        {
 028            this.serviceLocator = serviceLocator;
 029        }
 30    }
 31}