< Summary

Information
Class: ValidateLib.Metadata.PropertyParsers.Column.TitlesPropertyParser
Assembly: validatelib.dll
File(s): C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\Metadata\PropertyParsers\Column\TitlesPropertyParser.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 20
Line coverage: 100%
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
TitlesPropertyParser(...)20
ParseProperty(...)80

File(s)

C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\Metadata\PropertyParsers\Column\TitlesPropertyParser.cs

#LineLine coverage
 1using Newtonsoft.Json.Linq;
 2using ValidateLib.ErrorsAndWarnings.Warnings;
 3using ValidateLib.Metadata.Descriptors;
 4using ValidateLib.Metadata.Parsers;
 5
 6namespace ValidateLib.Metadata.PropertyParsers.Column
 7{
 8    internal class TitlesPropertyParser : PropertyParserBase<ColumnDescriptor>, IPropertyParser<ColumnDescriptor>
 9    {
 110        public TitlesPropertyParser(List<Warning> warnings, ColumnDescriptor? descriptor = null) : base(warnings, descri
 11        {
 112        }
 13
 14        public void ParseProperty(JProperty property)
 15        {
 116            var naturalLanguageParser = new NaturalLanguageParser(Warnings);
 117            Descriptor.titles = naturalLanguageParser.ParseJToken(property.Value, property.Name);
 118        }
 19    }
 20}