< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 75
Coverable lines: 75
Total lines: 123
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
File 1: Up(...)100%210%
File 1: Down(...)100%210%
File 2: BuildTargetModel(...)100%210%

File(s)

/home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Migrations/20250717192933_RestoreStateGameEntity.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4#nullable disable
 5
 6namespace TicTacToeApp.API.Migrations
 7{
 8    /// <inheritdoc />
 9    public partial class RestoreStateGameEntity : Migration
 10    {
 11        /// <inheritdoc />
 12        protected override void Up(MigrationBuilder migrationBuilder)
 13        {
 014            migrationBuilder.DropColumn(
 015                name: "Age",
 016                table: "Games");
 17
 018            migrationBuilder.DropColumn(
 019                name: "Surname",
 020                table: "Games");
 021        }
 22
 23        /// <inheritdoc />
 24        protected override void Down(MigrationBuilder migrationBuilder)
 25        {
 026            migrationBuilder.AddColumn<int>(
 027                name: "Age",
 028                table: "Games",
 029                type: "integer",
 030                nullable: false,
 031                defaultValue: 0);
 32
 033            migrationBuilder.AddColumn<string>(
 034                name: "Surname",
 035                table: "Games",
 036                type: "text",
 037                nullable: false,
 038                defaultValue: "");
 39
 040            migrationBuilder.UpdateData(
 041                table: "Games",
 042                keyColumn: "Id",
 043                keyValue: new Guid("b8aa36a5-9094-4dbd-80a5-444fcb92d3a4"),
 044                columns: new[] { "Age", "Surname" },
 045                values: new object[] { 0, "" });
 046        }
 47    }
 48}

/home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Migrations/20250717192933_RestoreStateGameEntity.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Migrations;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 8using TicTacToeApp.API.Data;
 9
 10#nullable disable
 11
 12namespace TicTacToeApp.API.Migrations
 13{
 14    [DbContext(typeof(TicTacToeContext))]
 15    [Migration("20250717192933_RestoreStateGameEntity")]
 16    partial class RestoreStateGameEntity
 17    {
 18        /// <inheritdoc />
 19        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 20        {
 21#pragma warning disable 612, 618
 022            modelBuilder
 023                .HasAnnotation("ProductVersion", "9.0.7")
 024                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 25
 026            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 27
 028            modelBuilder.Entity("TicTacToeApp.API.Entity.Game", b =>
 029                {
 030                    b.Property<Guid>("Id")
 031                        .ValueGeneratedOnAdd()
 032                        .HasColumnType("uuid");
 033
 034                    b.Property<string>("Board")
 035                        .IsRequired()
 036                        .HasColumnType("text");
 037
 038                    b.Property<DateTime>("CreatedAt")
 039                        .HasColumnType("timestamp with time zone");
 040
 041                    b.Property<string>("CurrentMove")
 042                        .IsRequired()
 043                        .HasColumnType("text");
 044
 045                    b.Property<long>("CurrentStep")
 046                        .HasColumnType("bigint");
 047
 048                    b.Property<string>("Result")
 049                        .IsRequired()
 050                        .HasColumnType("text");
 051
 052                    b.Property<string>("Status")
 053                        .IsRequired()
 054                        .HasColumnType("text");
 055
 056                    b.HasKey("Id");
 057
 058                    b.ToTable("Games", (string)null);
 059
 060                    b.HasData(
 061                        new
 062                        {
 063                            Id = new Guid("b8aa36a5-9094-4dbd-80a5-444fcb92d3a4"),
 064                            Board = "[[\"X\",\"O\",null],[null,\"X\",\"O\"],[\"O\",null,\"X\"]]",
 065                            CreatedAt = new DateTime(2023, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc),
 066                            CurrentMove = "X",
 067                            CurrentStep = 0L,
 068                            Result = "None",
 069                            Status = "Active"
 070                        });
 071                });
 72#pragma warning restore 612, 618
 073        }
 74    }
 75}