< Summary

Information
Class: ValidateLib.TabularData.AnnotatedTabularDataModel.Column
Assembly: validatelib.dll
File(s): C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\TabularData\AnnotatedTabularDataModel\Column.cs
Line coverage
100%
Covered lines: 27
Uncovered lines: 0
Coverable lines: 27
Total lines: 40
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
Column(...)100
isPartOfKey()50

File(s)

C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\TabularData\AnnotatedTabularDataModel\Column.cs

#LineLine coverage
 1using ValidateLib.Metadata.Descriptors;
 2using ValidateLib.Metadata.Properties;
 3
 4namespace ValidateLib.TabularData.AnnotatedTabularDataModel
 5{
 6    public class Column
 7    {
 18        public URITemplateProperty? aboutURL { get; set; } = null;
 9        // This we will probably need to check the foreign and primary keys
 10        // store only for these columns, otherwise it would cost a lot of memory space
 11        // also store for the referencing columns so we can check
 112        public List<Cell> cells { get; set; } = new List<Cell>();
 113        public DatatypeDescriptor datatype { get; set; } = new DatatypeDescriptor();
 114        public string _default { get; set; } = "";
 115        public string lang { get; set; } = "und";
 116        public string name { get; set; } = "";
 117        public List<string> _null { get; set; } = new List<string> { "" };
 118        public int number { get; set; }
 119        public bool ordered { get; set; } = false;
 120        public URITemplateProperty? propertyURL { get; set; } = null;
 121        public bool required { get; set; } = false;
 122        public string? separator { get; set; } = null;
 123        public int sourceNumber { get; set; }
 124        public Table table { get; set; }
 125        public string textDirection { get; set; } = "auto";
 126        public Dictionary<string, string[]> titles { get; set; } = new Dictionary<string, string[]>();
 127        public URITemplateProperty? valueURL { get; set; } = null;
 128        public bool _virtual { get; set; } = false;
 129        public bool suppresOutput { get; set; } = false;
 130        public bool isPartOfPrimaryKey { get; set; } = false;
 131        public bool isPartOfForeignKey { get; set; } = false;
 132        public bool isPartOfKey() => isPartOfForeignKey || isPartOfPrimaryKey;
 133        public Column(Table table, int number, int sourceNumber)
 34        {
 135            this.table = table;
 136            this.number = number;
 137            this.sourceNumber = sourceNumber;
 138        }
 39    }
 40}