< Summary

Class:DCL.PluginGroup
Assembly:PluginSystem
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/PluginSystem/PluginGroup.cs
Covered lines:4
Uncovered lines:5
Coverable lines:9
Total lines:27
Line coverage:44.4% (4 of 9)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PluginGroup()0%110100%
Add(...)0%2.062075%
Remove(...)0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/PluginSystem/PluginGroup.cs

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace DCL
 4{
 5    public class PluginGroup
 6    {
 117        public Dictionary<PluginBuilder, PluginInfo> plugins = new Dictionary<PluginBuilder, PluginInfo>();
 8
 9        public bool Add(PluginBuilder plugin, PluginInfo pluginInfo)
 10        {
 1711            if ( plugins.ContainsKey(plugin) )
 012                return false;
 13
 1714            plugins.Add(plugin, pluginInfo);
 1715            return true;
 16        }
 17
 18        public bool Remove(PluginBuilder plugin)
 19        {
 020            if ( !plugins.ContainsKey(plugin))
 021                return false;
 22
 023            plugins.Remove(plugin);
 024            return true;
 25        }
 26    }
 27}