< Summary

Information
Class: Morpho25.Settings.InflowAvg
Assembly: Morpho25
File(s): D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\InflowAvg.cs
Line coverage
92%
Covered lines: 12
Uncovered lines: 1
Coverable lines: 13
Total lines: 46
Line coverage: 92.3%
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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Avg()100%1100%
.ctor()100%1100%
get_Title()100%1100%
get_Values()100%1100%
get_Tags()100%1100%
ToString()100%10%

File(s)

D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\InflowAvg.cs

#LineLine coverage
 1namespace Morpho25.Settings
 2{
 3    /// <summary>
 4    /// Active averaged inflow class.
 5    /// </summary>
 6    public class InflowAvg
 7    {
 8        /// <summary>
 9        /// Enable Avg inflow.
 10        /// </summary>
 611        public Active Avg { get; set; }
 12
 13        /// <summary>
 14        /// Create a new Active averaged inflow object.
 15        /// </summary>
 216        public InflowAvg()
 217        {
 218            Avg = Active.YES;
 219        }
 20
 21        /// <summary>
 22        /// Title of the XML section
 23        /// </summary>
 124        public string Title => "InflowAvg";
 25
 26        /// <summary>
 27        /// Values of the XML section
 28        /// </summary>
 129        public string[] Values => new[] {
 130            ((int)Avg).ToString()
 131        };
 32
 33        /// <summary>
 34        /// Tags of the XML section
 35        /// </summary>
 136        public string[] Tags => new[] {
 137            "inflowAvg"
 138        };
 39
 40        /// <summary>
 41        /// String representation of the Avg inflow.
 42        /// </summary>
 43        /// <returns>String representation.</returns>
 044        public override string ToString() => "Config::InflowAvg";
 45    }
 46}