< Summary - MechanicsSoftware — Coverage Report

Information
Class: MechanicsSoftware.Application.UseCases.Customers.CustomerResponse
Assembly: MechanicsSoftware.Application
File(s): /home/runner/work/mechanics-software/mechanics-software/src/MechanicsSoftware.Application/UseCases/Customers/CustomerResponse.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 15
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
.ctor(...)100%11100%
From(...)100%11100%

File(s)

/home/runner/work/mechanics-software/mechanics-software/src/MechanicsSoftware.Application/UseCases/Customers/CustomerResponse.cs

#LineLine coverage
 1using MechanicsSoftware.Domain.Entities;
 2
 3namespace MechanicsSoftware.Application.UseCases.Customers;
 4
 145public sealed record CustomerResponse(
 146    Guid Id,
 147    string Name,
 148    string DocumentValue,
 149    string Email,
 1410    string Phone
 1411)
 12{
 13    public static CustomerResponse From(Customer c) =>
 1414        new(c.Id, c.Name, c.Document.Value, c.Email.Value, c.Phone);
 15}