< Summary

Information
Class: Elsa.Labels.Endpoints.Labels.List.PageMapper
Assembly: Elsa.Labels
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Labels/Endpoints/Labels/List/Mappers.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 14
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
FromEntity(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Labels/Endpoints/Labels/List/Mappers.cs

#LineLine coverage
 1using Elsa.Common.Models;
 2using Elsa.Labels.Entities;
 3using FastEndpoints;
 4
 5namespace Elsa.Labels.Endpoints.Labels.List;
 6
 7public class PageMapper : Mapper<Request, Response, Page<Label>>
 8{
 09    public override Response FromEntity(Page<Label> e) => new()
 010    {
 011        Items = e.Items,
 012        TotalCount = e.TotalCount
 013    };
 14}