< Summary

Information
Class: Syki.Back.Features.Adm.GetFeatureFlags.GetFeatureFlagsService
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Adm/GetFeatureFlags/GetFeatureFlagsService.cs
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 15
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/Back/Features/Adm/GetFeatureFlags/GetFeatureFlagsService.cs

#LineLine coverage
 1namespace Syki.Back.Features.Adm.GetFeatureFlags;
 2
 03public class GetFeatureFlagsService(SykiDbContext ctx, FeaturesSettings settings) : IAdmService
 4{
 5    public async Task<GetFeatureFlagsOut> Get()
 6    {
 07        var featureFlags = await ctx.FeatureFlags.AsNoTracking()
 08            .Where(i => i.Id == Guid.Empty)
 09            .FirstOrDefaultAsync();
 10
 011        featureFlags ??= new() { Settings = settings };
 12
 013        return featureFlags.ToOut();
 014    }
 15}