< Summary

Information
Class: ValidateLib.Metadata.PropertyParsers.Table.SuppresOutputPropertyParser
Assembly: validatelib.dll
File(s): C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\Metadata\PropertyParsers\Table\SuppresOutputPropertyParser.cs
Line coverage
71%
Covered lines: 5
Uncovered lines: 2
Coverable lines: 7
Total lines: 24
Line coverage: 71.4%
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

MethodBlocks covered Blocks not covered
SuppresOutputPropertyParser(...)20
ParseProperty(...)912

File(s)

C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\Metadata\PropertyParsers\Table\SuppresOutputPropertyParser.cs

#LineLine coverage
 1using Newtonsoft.Json.Linq;
 2using ValidateLib.ErrorsAndWarnings.Warnings;
 3using ValidateLib.Metadata.Descriptors;
 4using ValidateLib.Metadata.Properties.AtomicProperties;
 5
 6namespace ValidateLib.Metadata.PropertyParsers.Table
 7{
 8    public class SuppresOutputPropertyParser : PropertyParserBase<TableDescriptor>, IPropertyParser<TableDescriptor>
 9    {
 110        public SuppresOutputPropertyParser(List<Warning> warnings, TableDescriptor descriptor) : base(warnings, descript
 11        {
 112        }
 13
 14        public void ParseProperty(JProperty property)
 15        {
 116            if (property.Value.Type != JTokenType.Boolean)
 17            {
 018                Warnings.Add(WarningFactory.GetAtomicPropertyBoolWrongValueWarning(property.Value, property.Name, proper
 019                Descriptor.suppressOutput = new AtomicPropertyBoolean(false);
 20            }
 121            else Descriptor.suppressOutput = new AtomicPropertyBoolean((bool)property.Value);
 122        }
 23    }
 24}