< Summary - Syki

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

#LineLine coverage
 1using Syki.Back.Storage;
 2
 3namespace Syki.Back.Features.Cross.CreatePreSignedUrlForUpload;
 4
 05public class CreatePreSignedUrlForUploadService(IStorageService service) : ICrossService
 6{
 7    public async Task<OneOf<CreatePreSignedUrlForUploadOut, SykiError>> Create(Guid institutionId, Guid userId, CreatePr
 8    {
 09        var path = $"{data.Container.GetDescription()}/{institutionId}/{userId}/{data.FileName}";
 10
 011        var url = await service.CreatePreSignedUrlForUpload(data.Container, path);
 12
 013        return new CreatePreSignedUrlForUploadOut() { Url = url };
 014    }
 15}