< Summary - ReFlex - Library

Information
Class: ReFlex.Server.Data.Config.FrameSizeDefinition
Assembly: ReFlex.Server.Data
File(s): D:\a\reflex\reflex\library\src\Server\Data\Config\FrameSizeDefinition.cs
Line coverage
31%
Covered lines: 7
Uncovered lines: 15
Coverable lines: 22
Total lines: 41
Line coverage: 31.8%
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 Crap Score Cyclomatic complexity Line coverage
get_Width()100%11100%
get_Height()100%11100%
get_Left()100%11100%
get_Top()100%11100%
.ctor()100%11100%
.ctor(...)100%210%
.ctor(...)100%210%
GetFrameSizeDefinitionString()100%210%

File(s)

D:\a\reflex\reflex\library\src\Server\Data\Config\FrameSizeDefinition.cs

#LineLine coverage
 1using ReFlex.Core.Calibration.Components;
 2
 3namespace ReFlex.Server.Data.Config
 4{
 5    public class FrameSizeDefinition
 6    {
 247        public int Width { get; set; }
 8
 249        public int Height { get; set; }
 10
 2411        public int Left { get; set; }
 12
 2413        public int Top { get; set; }
 14
 4015        public FrameSizeDefinition()
 4016        {
 17
 4018        }
 19
 020        public FrameSizeDefinition(int width, int height, int left, int top)
 021        {
 022            Width = width;
 023            Height = height;
 024            Left = left;
 025            Top = top;
 026        }
 27
 28        public FrameSizeDefinition(Calibrator calibrator)
 029            : this (calibrator.Width,calibrator.Height, calibrator.StartX, calibrator.StartY) {
 030        }
 31
 32        public string GetFrameSizeDefinitionString()
 033        {
 034            var result =
 035                $"{nameof(FrameSizeDefinition)} [{nameof(Top)} | {nameof(Left)} | {nameof(Width)} | {nameof(Height)}]: {
 036            result += $"{Environment.NewLine}";
 37
 038            return result;
 039        }
 40    }
 41}