< Summary

Class:Utilities
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Utilities.cs
Covered lines:3
Uncovered lines:6
Coverable lines:9
Total lines:17
Line coverage:33.3% (3 of 9)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:3
Method coverage:33.3% (1 of 3)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GenerateRandomNoise(...)0%110100%
ConvertMpsToKnots(...)0%2100%
ConvertMetersToFeet(...)0%2100%

File(s)

/github/workspace/Assets/Scripts/Utilities.cs

#LineLine coverage
 1using UnityEngine;
 2
 3public static class Utilities {
 304  public static Vector3 GenerateRandomNoise(Vector3 standardDeviation) {
 305    return new Vector3(Random.Range(-standardDeviation.x, standardDeviation.x),
 6                       Random.Range(-standardDeviation.y, standardDeviation.y),
 7                       Random.Range(-standardDeviation.z, standardDeviation.z));
 308  }
 9
 010  public static float ConvertMpsToKnots(float mps) {
 011    return mps * 1.94384f;
 012  }
 13
 014  public static float ConvertMetersToFeet(float meters) {
 015    return meters * 3.28084f;
 016  }
 17}