< Summary

Class:VideoProviderFactory
Assembly:VideoComponents
File(s):/tmp/workspace/explorer-desktop/unity-renderer-desktop/Assets/Scripts/MainScripts/DCL/Components/Video/VideoProviderFactory.cs
Covered lines:0
Uncovered lines:1
Coverable lines:1
Total lines:19
Line coverage:0% (0 of 1)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/explorer-desktop/unity-renderer-desktop/Assets/Scripts/MainScripts/DCL/Components/Video/VideoProviderFactory.cs

#LineLine coverage
 1using DCL;
 2using DCL.Components.Video.Plugin;
 3using UnityEngine;
 4
 5public class VideoProviderFactory
 6{
 7
 8    public static IVideoPluginWrapper CreateVideoProvider()
 9    {
 10#if AV_PRO_PRESENT
 11        if (DataStore.i.featureFlags.flags.Get().IsFeatureEnabled("use_avpro_player") && Application.platform != Runtime
 12        {
 13            return new VideoPluginWrapper_AVPro();
 14        }
 15#endif
 016        return new VideoPluginWrapper_Native();
 17    }
 18
 19}

Methods/Properties

CreateVideoProvider()