< Summary

Information
Class: Services.LabelServices.OzonLabelStatusHelper
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/LabelServices/OzonLabelStatusHelper.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 15
Line coverage: 100%
Branch coverage
100%
Covered branches: 16
Total branches: 16
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
IsOzonStatusPastShipping(...)100%88100%
IsOzonStatusLabelGenerationBlocked(...)100%66100%
GetOzonStatusDisplayName(...)100%22100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/LabelServices/OzonLabelStatusHelper.cs

#LineLine coverage
 1using Services.ParserServices.HelpDictEnum;
 2
 3namespace Services.LabelServices;
 4
 5public static class OzonLabelStatusHelper
 6{
 7  public static bool IsOzonStatusPastShipping(string status) =>
 78    status is "delivering" or "driver_pickup" or "sent_by_seller" or "delivered";
 9
 10  public static bool IsOzonStatusLabelGenerationBlocked(string status) =>
 811    status is "delivered" or "cancelled" or "cancelled_from_split_pending";
 12
 13  public static string GetOzonStatusDisplayName(string status) =>
 514    OzonStatus.OrderStatuses.TryGetValue(status, out var name) ? name : status;
 15}