< Summary

Information
Class: TicTacToeApp.API.Entity.Game
Assembly: TicTacToeApp.API
File(s): /home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Entity/Game.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 22
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_Status()100%11100%
get_Board()100%11100%
get_Result()100%11100%
get_CreatedAt()100%11100%
get_CurrentMove()100%11100%
get_CurrentStep()100%11100%

File(s)

/home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Entity/Game.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations.Schema;
 2using System.Text.Json.Serialization;
 3using TicTacToeApp.API.Entity.Enums;
 4
 5namespace TicTacToeApp.API.Entity;
 6
 7public class Game
 8{
 159    public Guid Id { get; set; } = Guid.NewGuid();
 410    public StatusGame Status { get; set; } = StatusGame.Active;
 11
 12    // [NotMapped]
 513    public string?[][] Board { get; set; } = null!;
 414    public ResultGame Result { get; set; } = ResultGame.None;
 1515    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
 416    public Player CurrentMove { get; set; } = Player.X;
 417    public uint CurrentStep { get; set; } = 0;
 18
 19    // public User User { get; set; } = default!;
 20    // public int UserId { get; set; }
 21}
 22