< Summary

Information
Class: LGDXRobotCloud.Utilities.Helpers.RedisHelper
Assembly: LGDXRobotCloud.Utilities
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Utilities/Helpers/RedisHelper.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 24
Coverable lines: 24
Total lines: 44
Line coverage: 0%
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
GetRobotDataIndex(...)100%210%
GetRobotData(...)100%210%
GetRobotDataPrefix(...)100%210%
GetSchedulerHold(...)100%210%
GetAutoTaskUpdateQueue(...)100%210%
GetRobotExchangeQueue(...)100%210%
GetSlamData(...)100%210%
GetSlamExchangeQueue(...)100%210%

File(s)

/builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Utilities/Helpers/RedisHelper.cs

#LineLine coverage
 1namespace LGDXRobotCloud.Utilities.Helpers;
 2
 3public static class RedisHelper
 4{
 5  public static string GetRobotDataIndex(int realmId)
 06  {
 07    return $"idxRobotData:{realmId}";
 08  }
 9
 10  public static string GetRobotData(int realmId, Guid robotId)
 011  {
 012    return $"robotData:{realmId}:{robotId}";
 013  }
 14
 15  public static string GetRobotDataPrefix(int realmId)
 016  {
 017    return $"robotData:{realmId}:";
 018  }
 19
 20  public static string GetSchedulerHold(int realmId, Guid robotId)
 021  {
 022    return $"schedulerHold:{realmId}:{robotId}";
 023  }
 24
 25  public static string GetAutoTaskUpdateQueue(int realmId)
 026  {
 027    return $"autoTaskUpdate:{realmId}";
 028  }
 29
 30  public static string GetRobotExchangeQueue(Guid robotId)
 031  {
 032    return $"robotExchangeQueue:{robotId}";
 033  }
 34
 35  public static string GetSlamData(int realmId)
 036  {
 037    return $"robotSlamData:{realmId}";
 038  }
 39
 40  public static string GetSlamExchangeQueue(int realmId)
 041  {
 042    return $"robotSlamExchangeQueue:{realmId}";
 043  }
 44}