< Summary - Combined Code Coverage

Line coverage
0%
Covered lines: 0
Uncovered lines: 32
Coverable lines: 32
Total lines: 75
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/nlightning/nlightning/src/NLightning.Models.SqlServer/Migrations/20240322171304_Init.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace NLightning.Models.SqlServer.Migrations
 6{
 7    /// <inheritdoc />
 8    public partial class Init : Migration
 9    {
 10        /// <inheritdoc />
 11        protected override void Up(MigrationBuilder migrationBuilder)
 12        {
 013            migrationBuilder.CreateTable(
 014                name: "Nodes",
 015                columns: table => new
 016                {
 017                    Id = table.Column<long>(type: "bigint", nullable: false)
 018                        .Annotation("SqlServer:Identity", "1, 1")
 019                },
 020                constraints: table =>
 021                {
 022                    table.PrimaryKey("PK_Nodes", x => x.Id);
 023                });
 024        }
 25
 26        /// <inheritdoc />
 27        protected override void Down(MigrationBuilder migrationBuilder)
 28        {
 029            migrationBuilder.DropTable(
 030                name: "Nodes");
 031        }
 32    }
 33}

/home/runner/work/nlightning/nlightning/src/NLightning.Models.SqlServer/Migrations/20240322171304_Init.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using Microsoft.EntityFrameworkCore;
 3using Microsoft.EntityFrameworkCore.Infrastructure;
 4using Microsoft.EntityFrameworkCore.Metadata;
 5using Microsoft.EntityFrameworkCore.Migrations;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7using NLightning.Models;
 8
 9#nullable disable
 10
 11namespace NLightning.Models.SqlServer.Migrations
 12{
 13    [DbContext(typeof(NLightningContext))]
 14    [Migration("20240322171304_Init")]
 15    partial class Init
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 021            modelBuilder
 022                .HasAnnotation("ProductVersion", "8.0.3")
 023                .HasAnnotation("Relational:MaxIdentifierLength", 128);
 24
 025            SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
 26
 027            modelBuilder.Entity("NLightning.Models.NLightningContext+Node", b =>
 028                {
 029                    b.Property<long>("Id")
 030                        .ValueGeneratedOnAdd()
 031                        .HasColumnType("bigint");
 032
 033                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
 034
 035                    b.HasKey("Id");
 036
 037                    b.ToTable("Nodes");
 038                });
 39#pragma warning restore 612, 618
 040        }
 41    }
 42}