< Summary - Jellyfin

Information
Class: Jellyfin.Data.Entities.Libraries.Book
Assembly: Jellyfin.Data
File(s): /srv/git/jellyfin/Jellyfin.Data/Entities/Libraries/Book.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 29
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.Data/Entities/Libraries/Book.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using Jellyfin.Data.Interfaces;
 3
 4namespace Jellyfin.Data.Entities.Libraries
 5{
 6    /// <summary>
 7    /// An entity representing a book.
 8    /// </summary>
 9    public class Book : LibraryItem, IHasReleases
 10    {
 11        /// <summary>
 12        /// Initializes a new instance of the <see cref="Book"/> class.
 13        /// </summary>
 14        /// <param name="library">The library.</param>
 015        public Book(Library library) : base(library)
 16        {
 017            BookMetadata = new HashSet<BookMetadata>();
 018            Releases = new HashSet<Release>();
 019        }
 20
 21        /// <summary>
 22        /// Gets a collection containing the metadata for this book.
 23        /// </summary>
 24        public virtual ICollection<BookMetadata> BookMetadata { get; private set; }
 25
 26        /// <inheritdoc />
 27        public virtual ICollection<Release> Releases { get; private set; }
 28    }
 29}