< Summary - Jellyfin

Line coverage
94%
Covered lines: 73
Uncovered lines: 4
Coverable lines: 77
Total lines: 118
Line coverage: 94.8%
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

Coverage history

Coverage history 0 25 50 75 100 5/31/2026 - 12:15:44 AM Line coverage: 94.8% (73/77) Total lines: 118

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
File 1: Up(...)100%11100%
File 1: Down(...)100%210%
File 2: BuildTargetModel(...)100%11100%

File(s)

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20200514181226_AddActivityLog.cs

#LineLine coverage
 1#pragma warning disable CS1591
 2#pragma warning disable SA1601
 3
 4using System;
 5using Microsoft.EntityFrameworkCore.Migrations;
 6
 7namespace Jellyfin.Server.Implementations.Migrations
 8{
 9    public partial class AddActivityLog : Migration
 10    {
 11        protected override void Up(MigrationBuilder migrationBuilder)
 12        {
 2713            migrationBuilder.EnsureSchema(
 2714                name: "jellyfin");
 15
 2716            migrationBuilder.CreateTable(
 2717                name: "ActivityLogs",
 2718                schema: "jellyfin",
 2719                columns: table => new
 2720                {
 2721                    Id = table.Column<int>(nullable: false)
 2722                        .Annotation("Sqlite:Autoincrement", true),
 2723                    Name = table.Column<string>(maxLength: 512, nullable: false),
 2724                    Overview = table.Column<string>(maxLength: 512, nullable: true),
 2725                    ShortOverview = table.Column<string>(maxLength: 512, nullable: true),
 2726                    Type = table.Column<string>(maxLength: 256, nullable: false),
 2727                    UserId = table.Column<Guid>(nullable: false),
 2728                    ItemId = table.Column<string>(maxLength: 256, nullable: true),
 2729                    DateCreated = table.Column<DateTime>(nullable: false),
 2730                    LogSeverity = table.Column<int>(nullable: false),
 2731                    RowVersion = table.Column<uint>(nullable: false)
 2732                },
 2733                constraints: table =>
 2734                {
 2735                    table.PrimaryKey("PK_ActivityLogs", x => x.Id);
 2736                });
 2737        }
 38
 39        protected override void Down(MigrationBuilder migrationBuilder)
 40        {
 041            migrationBuilder.DropTable(
 042                name: "ActivityLogs",
 043                schema: "jellyfin");
 044        }
 45    }
 46}

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20200514181226_AddActivityLog.Designer.cs

#LineLine coverage
 1#pragma warning disable CS1591
 2
 3// <auto-generated />
 4using System;
 5using Jellyfin.Database.Implementations;
 6using Microsoft.EntityFrameworkCore;
 7using Microsoft.EntityFrameworkCore.Infrastructure;
 8using Microsoft.EntityFrameworkCore.Migrations;
 9using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 10
 11namespace Jellyfin.Server.Implementations.Migrations
 12{
 13    [DbContext(typeof(JellyfinDbContext))]
 14    [Migration("20200514181226_AddActivityLog")]
 15    partial class AddActivityLog
 16    {
 17        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 18        {
 19#pragma warning disable 612, 618
 2720            modelBuilder
 2721                .HasDefaultSchema("jellyfin")
 2722                .HasAnnotation("ProductVersion", "3.1.3");
 23
 2724            modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
 2725                {
 2726                    b.Property<int>("Id")
 2727                        .ValueGeneratedOnAdd()
 2728                        .HasColumnType("INTEGER");
 2729
 2730                    b.Property<DateTime>("DateCreated")
 2731                        .HasColumnType("TEXT");
 2732
 2733                    b.Property<string>("ItemId")
 2734                        .HasColumnType("TEXT")
 2735                        .HasMaxLength(256);
 2736
 2737                    b.Property<int>("LogSeverity")
 2738                        .HasColumnType("INTEGER");
 2739
 2740                    b.Property<string>("Name")
 2741                        .IsRequired()
 2742                        .HasColumnType("TEXT")
 2743                        .HasMaxLength(512);
 2744
 2745                    b.Property<string>("Overview")
 2746                        .HasColumnType("TEXT")
 2747                        .HasMaxLength(512);
 2748
 2749                    b.Property<uint>("RowVersion")
 2750                        .IsConcurrencyToken()
 2751                        .HasColumnType("INTEGER");
 2752
 2753                    b.Property<string>("ShortOverview")
 2754                        .HasColumnType("TEXT")
 2755                        .HasMaxLength(512);
 2756
 2757                    b.Property<string>("Type")
 2758                        .IsRequired()
 2759                        .HasColumnType("TEXT")
 2760                        .HasMaxLength(256);
 2761
 2762                    b.Property<Guid>("UserId")
 2763                        .HasColumnType("TEXT");
 2764
 2765                    b.HasKey("Id");
 2766
 2767                    b.ToTable("ActivityLogs");
 2768                });
 69#pragma warning restore 612, 618
 2770        }
 71    }
 72}