< Summary - Syki

Information
Class: Syki.Front.Features.Cross.CreatePreSignedUrlForUpload.CreatePreSignedUrlForUploadClient
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Features/Cross/CreatePreSignedUrlForUpload/CreatePreSignedUrlForUploadClient.cs
Tag: 4_16869239191
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 13
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%
Create()100%210%

File(s)

/home/runner/work/syki/syki/Front/Features/Cross/CreatePreSignedUrlForUpload/CreatePreSignedUrlForUploadClient.cs

#LineLine coverage
 1namespace Syki.Front.Features.Cross.CreatePreSignedUrlForUpload;
 2
 03public class CreatePreSignedUrlForUploadClient(HttpClient http) : ICrossClient
 4{
 5    public async Task<OneOf<CreatePreSignedUrlForUploadOut, ErrorOut>> Create(StorageContainer container, string fileNam
 6    {
 07        var data = new CreatePreSignedUrlForUploadIn { Container = container, FileName = fileName };
 8
 09        var response = await http.PutAsJsonAsync("/files/pre-signed-url", data);
 10
 011        return await response.Resolve<CreatePreSignedUrlForUploadOut>();
 012    }
 13}