< Summary

Class:ClipboardStandalone
Assembly:Clipboard
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Clipboard/Handlers/Standalone/ClipboardStandalone.cs
Covered lines:1
Uncovered lines:2
Coverable lines:3
Total lines:13
Line coverage:33.3% (1 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Initialize(...)0%110100%
RequestWriteText(...)0%2100%
RequestGetText()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Clipboard/Handlers/Standalone/ClipboardStandalone.cs

#LineLine coverage
 1using System;
 2using UnityEngine;
 3
 4internal class ClipboardStandalone : IClipboardHandler
 5{
 6    private Action<string, bool> OnRead;
 7
 12588    void IClipboardHandler.Initialize(Action<string, bool> onRead) { this.OnRead = onRead; }
 9
 010    void IClipboardHandler.RequestWriteText(string text) { GUIUtility.systemCopyBuffer = text; }
 11
 012    void IClipboardHandler.RequestGetText() { OnRead?.Invoke(GUIUtility.systemCopyBuffer, false); }
 13}