< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 75
Coverable lines: 75
Total lines: 121
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/20250717182135_InitSurname.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 InitSurname : Migration
 10    {
 11        /// <inheritdoc />
 12        protected override void Up(MigrationBuilder migrationBuilder)
 13        {
 014            migrationBuilder.AddColumn<string>(
 015                name: "Surname",
 016                table: "Games",
 017                type: "text",
 018                nullable: false,
 019                defaultValue: "");
 20
 021            migrationBuilder.UpdateData(
 022                table: "Games",
 023                keyColumn: "Id",
 024                keyValue: new Guid("b8aa36a5-9094-4dbd-80a5-444fcb92d3a4"),
 025                column: "Surname",
 026                value: "");
 027        }
 28
 29        /// <inheritdoc />
 30        protected override void Down(MigrationBuilder migrationBuilder)
 31        {
 032            migrationBuilder.DropColumn(
 033                name: "Surname",
 034                table: "Games");
 035        }
 36    }
 37}

/home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Migrations/20250717182135_InitSurname.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("20250717182135_InitSurname")]
 16    partial class InitSurname
 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<int>("Age")
 035                        .HasColumnType("integer");
 036
 037                    b.Property<string>("Board")
 038                        .IsRequired()
 039                        .HasColumnType("text");
 040
 041                    b.Property<DateTime>("CreatedAt")
 042                        .HasColumnType("timestamp with time zone");
 043
 044                    b.Property<string>("CurrentMove")
 045                        .IsRequired()
 046                        .HasColumnType("text");
 047
 048                    b.Property<long>("CurrentStep")
 049                        .HasColumnType("bigint");
 050
 051                    b.Property<string>("Result")
 052                        .IsRequired()
 053                        .HasColumnType("text");
 054
 055                    b.Property<string>("Status")
 056                        .IsRequired()
 057                        .HasColumnType("text");
 058
 059                    b.Property<string>("Surname")
 060                        .IsRequired()
 061                        .HasColumnType("text");
 062
 063                    b.HasKey("Id");
 064
 065                    b.ToTable("Games", (string)null);
 066
 067                    b.HasData(
 068                        new
 069                        {
 070                            Id = new Guid("b8aa36a5-9094-4dbd-80a5-444fcb92d3a4"),
 071                            Age = 0,
 072                            Board = "[[\"X\",\"O\",null],[null,\"X\",\"O\"],[\"O\",null,\"X\"]]",
 073                            CreatedAt = new DateTime(2023, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc),
 074                            CurrentMove = "X",
 075                            CurrentStep = 0L,
 076                            Result = "None",
 077                            Status = "Active",
 078                            Surname = ""
 079                        });
 080                });
 81#pragma warning restore 612, 618
 082        }
 83    }
 84}