< Summary - Jellyfin

Information
Class: Jellyfin.Server.Migrations.MigrationOptions
Assembly: jellyfin
File(s): /srv/git/jellyfin/Jellyfin.Server/Migrations/MigrationOptions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 27
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

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%210%

File(s)

/srv/git/jellyfin/Jellyfin.Server/Migrations/MigrationOptions.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3
 4namespace Jellyfin.Server.Migrations
 5{
 6    /// <summary>
 7    /// Configuration part that holds all migrations that were applied.
 8    /// </summary>
 9    public class MigrationOptions
 10    {
 11        /// <summary>
 12        /// Initializes a new instance of the <see cref="MigrationOptions"/> class.
 13        /// </summary>
 14        public MigrationOptions()
 15        {
 16            Applied = new List<(Guid Id, string Name)>();
 017        }
 18
 19// .Net xml serializer can't handle interfaces
 20#pragma warning disable CA1002 // Do not expose generic lists
 21        /// <summary>
 22        /// Gets the list of applied migration routine names.
 23        /// </summary>
 24        public List<(Guid Id, string Name)> Applied { get; }
 25#pragma warning restore CA1002
 26    }
 27}

Methods/Properties

.ctor()