< Summary

Class:MainScripts.DCL.WebPlugin.WebGLPlugin
Assembly:WebGLPlugin
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WebPlugin/WebGLPlugin.cs
Covered lines:0
Uncovered lines:1
Coverable lines:1
Total lines:16
Line coverage:0% (0 of 1)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WebPlugin/WebGLPlugin.cs

#LineLine coverage
 1#if UNITY_WEBGL && !UNITY_EDITOR
 2using System.Runtime.InteropServices;
 3#endif
 4
 5namespace MainScripts.DCL.WebPlugin
 6{
 7    public static class WebGLPlugin
 8    {
 9#if UNITY_WEBGL && !UNITY_EDITOR
 10        [DllImport("__Internal")]
 11        public static extern string GetUserAgent();
 12#else
 013        public static string GetUserAgent() { return ""; }
 14#endif
 15    }
 16}

Methods/Properties

GetUserAgent()