< Summary

Information
Class: FAU.Entidades.Rol
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/Rol.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 26
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
get_Id()100%11100%
get_Nombre()100%11100%
get_Descripcion()100%11100%
get_Usuarios()100%11100%
get_Permisos()100%11100%

File(s)

/home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/Rol.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("roles")]
 7public class Rol
 8{
 9    [Key]
 10    [Column("id")]
 5811    public long Id { get; set; }
 12
 13    [Required]
 14    [MaxLength(60)]
 15    [Column("nombre")]
 10316    public string Nombre { get; set; } = string.Empty;
 17
 18    [MaxLength(200)]
 19    [Column("descripcion")]
 3120    public string? Descripcion { get; set; }
 21
 22    // Navegación
 3923    public virtual ICollection<Usuario> Usuarios { get; set; } = new List<Usuario>();
 8524    public virtual ICollection<Permiso> Permisos { get; set; } = new List<Permiso>();
 25}
 26