< Summary - SonghayCore

Information
Class: Songhay.Models.OpmlOutline
Assembly: SonghayCore
File(s): /home/rasx/sourceRoot/SonghayCore/SonghayCore/Models/OpmlOutline.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 72
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Method coverage is only available for sponsors.

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Category()100%1100%
get_Id()100%1100%
get_Outlines()100%1100%
get_Text()100%1100%
get_Title()100%1100%
get_OutlineType()100%1100%
get_Url()100%1100%
get_XmlUrl()100%1100%

File(s)

/home/rasx/sourceRoot/SonghayCore/SonghayCore/Models/OpmlOutline.cs

#LineLine coverage
 1namespace Songhay.Models;
 2
 3/// <summary>
 4/// Defines a managed representation of the OPML outline element.
 5/// </summary>
 6[Serializable]
 7[XmlRoot(ElementName = "outline")]
 8[DataContract(Name = "outline")]
 9public class OpmlOutline
 10{
 11    /// <summary>
 12    /// Gets or sets the Category.
 13    /// </summary>
 14    [XmlAttribute(AttributeName = "category")]
 15    [JsonPropertyName("category")]
 932516    public string? Category { get; set; }
 17
 18    /// <summary>
 19    /// Gets or sets the ID.
 20    /// </summary>
 21    [XmlAttribute(AttributeName = "id")]
 22    [JsonPropertyName("id")]
 932123    public string? Id { get; set; }
 24
 25    /// <summary>
 26    /// Gets or sets the outlines.
 27    /// </summary>
 28    [SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays",
 29        Justification = "Used for XML serialization.")]
 30    [XmlElement(ElementName = "outline")]
 31    [JsonPropertyName("outline")]
 2645932    public OpmlOutline[] Outlines { get; set; } = Enumerable.Empty<OpmlOutline>().ToArray();
 33
 34    /// <summary>
 35    /// Gets or sets the text.
 36    /// </summary>
 37    [XmlAttribute(AttributeName = "text")]
 38    [JsonPropertyName("text")]
 936539    public string? Text { get; set; }
 40
 41    /// <summary>
 42    /// Gets or sets the title.
 43    /// </summary>
 44    [XmlAttribute(AttributeName = "title")]
 45    [JsonPropertyName("title")]
 932146    public string? Title { get; set; }
 47
 48    /// <summary>
 49    /// Gets or sets the type.
 50    /// </summary>
 51    [XmlAttribute(AttributeName = "type")]
 52    [JsonPropertyName("type")]
 935953    public string? OutlineType { get; set; }
 54
 55    /// <summary>
 56    /// Gets or sets the URL.
 57    /// </summary>
 58    [XmlAttribute(AttributeName = "url")]
 59    [JsonPropertyName("url")]
 60    [SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings",
 61        Justification = "OPML does not recognize the concept of the System.Uri.")]
 3444362    public string? Url { get; set; }
 63
 64    /// <summary>
 65    /// Gets or sets the XML URL.
 66    /// </summary>
 67    [XmlAttribute(AttributeName = "xmlUrl")]
 68    [JsonPropertyName("xmlUrl")]
 69    [SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings",
 70        Justification = "OPML does not recognize the concept of the System.Uri.")]
 1788971    public string? XmlUrl { get; set; }
 72}