< Summary

Information
Class: Elsa.Alterations.Endpoints.Alterations.TimestampFilterValidation
Assembly: Elsa.Alterations
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Alterations/Endpoints/Alterations/TimestampFilterValidation.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 20
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Validate(...)100%22100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Alterations/Endpoints/Alterations/TimestampFilterValidation.cs

#LineLine coverage
 1using Elsa.Workflows.Management.Filters;
 2using Elsa.Workflows.Management.Models;
 3
 4namespace Elsa.Alterations.Endpoints.Alterations;
 5
 6internal static class TimestampFilterValidation
 7{
 8    public static bool Validate(IEnumerable<TimestampFilter>? timestampFilters, Action<string> addError)
 9    {
 710        var isValid = true;
 11
 3012        foreach (var error in WorkflowInstanceFilter.ValidateTimestampFilters(timestampFilters))
 13        {
 814            addError(error);
 815            isValid = false;
 16        }
 17
 718        return isValid;
 19    }
 20}