< Summary

Class:DCL.MeshCombinerLogger
Assembly:AvatarMeshCombiner
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/Avatar/AvatarMeshCombiner/MeshCombinerLogger.cs
Covered lines:0
Uncovered lines:8
Coverable lines:8
Total lines:39
Line coverage:0% (0 of 8)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:4
Method coverage:0% (0 of 4)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Log(...)0%2100%
Log(...)0%2100%
LogWarning(...)0%2100%
LogError(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/Avatar/AvatarMeshCombiner/MeshCombinerLogger.cs

#LineLine coverage
 1using System.Diagnostics;
 2using UnityEngine;
 3using Debug = UnityEngine.Debug;
 4
 5namespace DCL
 6{
 7    /// <summary>
 8    /// Remove any calls from compilation to prevent string allocations
 9    /// </summary>
 10    public static class MeshCombinerLogger
 11    {
 12        public const string COMPILATION_DEFINE = "MESH_COMBINER_VERBOSE";
 13
 14        [Conditional(COMPILATION_DEFINE)]
 15        public static void Log(object message)
 16        {
 017            Debug.Log(message);
 018        }
 19
 20        [Conditional(COMPILATION_DEFINE)]
 21        public static void Log(object message, Object context)
 22        {
 023            Debug.Log(message, context);
 024        }
 25
 26        /// <summary>
 27        /// Warnings are not omitted
 28        /// </summary>
 29        public static void LogWarning(object message)
 30        {
 031            Debug.LogWarning(message);
 032        }
 33
 34        public static void LogError(object message)
 35        {
 036            Debug.LogError(message);
 037        }
 38    }
 39}