< Summary

Class:RectTransformExtensions
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/UI/RectTransformExtensions.cs
Covered lines:0
Uncovered lines:12
Coverable lines:12
Total lines:18
Line coverage:0% (0 of 12)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:4
Method coverage:0% (0 of 4)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SetLeft(...)0%2100%
SetRight(...)0%2100%
SetTop(...)0%2100%
SetBottom(...)0%2100%

File(s)

/github/workspace/Assets/Scripts/UI/RectTransformExtensions.cs

#LineLine coverage
 1using UnityEngine;
 2public static class RectTransformExtensions {
 03  public static void SetLeft(this RectTransform rt, float left) {
 04    rt.offsetMin = new Vector2(left, rt.offsetMin.y);
 05  }
 6
 07  public static void SetRight(this RectTransform rt, float right) {
 08    rt.offsetMax = new Vector2(-right, rt.offsetMax.y);
 09  }
 10
 011  public static void SetTop(this RectTransform rt, float top) {
 012    rt.offsetMax = new Vector2(rt.offsetMax.x, -top);
 013  }
 14
 015  public static void SetBottom(this RectTransform rt, float bottom) {
 016    rt.offsetMin = new Vector2(rt.offsetMin.x, bottom);
 017  }
 18}