< Summary

Class:ShaderVariantTrackerComponent
Assembly:ShaderVariantTracker
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/Utils/ShaderVariantTracker/ShaderVariantTrackerComponent.cs
Covered lines:0
Uncovered lines:2
Coverable lines:2
Total lines:13
Line coverage:0% (0 of 2)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Awake()0%2100%
OnDestroy()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/Utils/ShaderVariantTracker/ShaderVariantTrackerComponent.cs

#LineLine coverage
 1using UnityEngine;
 2
 3public class ShaderVariantTrackerComponent : MonoBehaviour
 4{
 5    public ShaderVariantCollection collection;
 6    public ShaderVariantTracker tracker;
 7
 8#if UNITY_EDITOR
 09    private void Awake() { tracker = new ShaderVariantTracker(collection); }
 10
 011    private void OnDestroy() { tracker?.Dispose(); }
 12#endif
 13}

Methods/Properties

Awake()
OnDestroy()