< Summary

Class:Mklinker.Variable
Assembly:Mklinker
File(s):/home/travis/build/rubenchristoffer/Mklinker/Mklinker/Variable.cs
Covered lines:7
Uncovered lines:1
Coverable lines:8
Total lines:34
Line coverage:87.5% (7 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
.ctor()100%100%
.ctor(...)10100%100%
ToString()10100%100%

File(s)

/home/travis/build/rubenchristoffer/Mklinker/Mklinker/Variable.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Threading.Tasks;
 6using System.Xml;
 7using System.Xml.Schema;
 8using System.Xml.Serialization;
 9
 10namespace Mklinker {
 11
 12  [Serializable]
 13  public class Variable {
 14
 15    [XmlAttribute("Name")]
 16    public string name;
 17
 18    [XmlAttribute("Value")]
 19    public string value;
 20
 021    private Variable() {}
 22
 2623    public Variable (string name, string value) {
 1324      this.name = name;
 1325      this.value = value;
 1326    }
 27
 428    public override string ToString() {
 429      return $"{ name }: { value }";
 430    }
 31
 32  }
 33
 34}