< Summary - Syki

Information
Class: Syki.Front.Features.Adm.GetBatch.GetBatchClient
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Features/Adm/GetBatch/GetBatchClient.cs
Tag: 4_16869239191
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 9
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
Get()0%620%

File(s)

/home/runner/work/syki/syki/Front/Features/Adm/GetBatch/GetBatchClient.cs

#LineLine coverage
 1namespace Syki.Front.Features.Adm.GetBatch;
 2
 03public class GetBatchClient(HttpClient http) : IAdmClient
 4{
 5    public async Task<BatchOut> Get(Guid id)
 6    {
 07        return await http.GetFromJsonAsync<BatchOut>($"/adm/batches/{id}", HttpConfigs.JsonOptions) ?? new();
 08    }
 9}