< Summary - MechanicsSoftware — Coverage Report

Information
Class: MechanicsSoftware.Application.UseCases.Vehicles.VehicleResponse
Assembly: MechanicsSoftware.Application
File(s): /home/runner/work/mechanics-software/mechanics-software/src/MechanicsSoftware.Application/UseCases/Vehicles/VehicleResponse.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 16
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/Vehicles/VehicleResponse.cs

#LineLine coverage
 1using MechanicsSoftware.Domain.Entities;
 2
 3namespace MechanicsSoftware.Application.UseCases.Vehicles;
 4
 185public sealed record VehicleResponse(
 186    Guid Id,
 187    string LicensePlate,
 188    string Make,
 189    string Model,
 1810    int Year,
 1811    Guid CustomerId
 1812)
 13{
 14    public static VehicleResponse From(Vehicle v) =>
 1815        new(v.Id, v.LicensePlate.Value, v.Make, v.Model, v.Year, v.CustomerId);
 16}