< Summary - SonghayCore

Information
Class: Songhay.Models.MenuDisplayItemModel
Assembly: SonghayCore
File(s): /home/rasx/sourceRoot/SonghayCore/SonghayCore/Models/MenuDisplayItemModel.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 50
Line coverage: 0%
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_ChildItems()100%10%
get_GroupDisplayText()100%10%
get_GroupId()100%10%
get_IsCollapsed()100%10%
get_IsDefaultSelection()100%10%
get_IsEnabled()100%10%
get_IsSelected()100%10%

File(s)

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

#LineLine coverage
 1namespace Songhay.Models;
 2
 3/// <summary>
 4/// Defines a colorable, selectable menu item
 5/// </summary>
 6public class MenuDisplayItemModel : ColorDisplayItemModel, IGroupable, ISelectable
 7{
 8    /// <summary>
 9    /// Gets or sets the child items.
 10    /// </summary>
 011    public MenuDisplayItemModel[] ChildItems { get; set; } = Enumerable.Empty<MenuDisplayItemModel>().ToArray();
 12
 13    #region IGroupable members:
 14
 15    /// <summary>
 16    /// Display text of the Group.
 17    /// </summary>
 018    public string? GroupDisplayText { get; set; }
 19
 20    /// <summary>
 21    /// Identifier of the Group.
 22    /// </summary>
 023    public string? GroupId { get; set; }
 24
 25    /// <summary>
 26    /// Returns `true` when group is visually collapsed.
 27    /// </summary>
 028    public bool IsCollapsed { get; set; }
 29
 30    #endregion
 31
 32    #region ISelectable members:
 33
 34    /// <summary>
 35    /// Gets or sets whether this is default selection.
 36    /// </summary>
 037    public bool? IsDefaultSelection { get; set; }
 38
 39    /// <summary>
 40    /// Gets or sets whether this is enabled.
 41    /// </summary>
 042    public bool? IsEnabled { get; set; }
 43
 44    /// <summary>
 45    /// Gets or sets whether this is selected.
 46    /// </summary>
 047    public bool? IsSelected { get; set; }
 48
 49    #endregion
 50}