< Summary

Information
Class: Syki.Front.Extensions.ClipboardService
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Extensions/ClipboardService.cs
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 11
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
CopyToClipboard()100%210%

File(s)

/home/runner/work/syki/syki/Front/Extensions/ClipboardService.cs

#LineLine coverage
 1using Microsoft.JSInterop;
 2
 3namespace Syki.Front.Extensions;
 4
 05public class ClipboardService(IJSRuntime JsInterop)
 6{
 7    public async Task CopyToClipboard(string text)
 8  {
 09    await JsInterop.InvokeVoidAsync("navigator.clipboard.writeText", text);
 010  }
 11}