< Summary - pva.SuperV

Information
Class: pva.SuperV.Api.Routes.HistoryValues.GetHistoryRawStatistics
Assembly: pva.SuperV.Api
File(s): /home/runner/work/pva.SuperV/pva.SuperV/pva.SuperV.Api/Routes/HistoryValues/GetHistoryRawStatistics.cs
Tag: dotnet-ubuntu_18869653307
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 28
Line coverage: 100%
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
Handle()100%11100%

File(s)

/home/runner/work/pva.SuperV/pva.SuperV/pva.SuperV.Api/Routes/HistoryValues/GetHistoryRawStatistics.cs

#LineLine coverage
 1using Microsoft.AspNetCore.Http.HttpResults;
 2using pva.SuperV.Engine.Exceptions;
 3using pva.SuperV.Model.HistoryRetrieval;
 4using pva.SuperV.Model.Services;
 5
 6namespace pva.SuperV.Api.Routes.HistoryValues
 7{
 8    internal static class GetHistoryRawStatistics
 9    {
 10        internal static async Task<Results<Ok<HistoryStatisticsRawResultModel>, NotFound<string>, BadRequest<string>>>
 11            Handle(IHistoryValuesService historyValuesService, string projectId, string instanceName, HistoryStatisticsR
 512        {
 13            try
 514            {
 515                HistoryStatisticsRawResultModel value = await historyValuesService.GetInstanceRawHistoryStatisticsAsync(
 216                return TypedResults.Ok(value);
 17            }
 118            catch (UnknownEntityException e)
 119            {
 120                return TypedResults.NotFound(e.Message);
 21            }
 222            catch (SuperVException e)
 223            {
 224                return TypedResults.BadRequest(e.Message);
 25            }
 526        }
 27    }
 28}

Methods/Properties

Handle()