< Summary

Information
Class: Anichron.Worker.Ingestion.IngestionCancellation
Assembly: Anichron.Worker
File(s): /home/runner/work/anichron/anichron/src/Anichron.Worker/Ingestion/IngestionCancellation.cs
Tag: 19_45211875487
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 8
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
IsRequested(...)100%22100%

File(s)

/home/runner/work/anichron/anichron/src/Anichron.Worker/Ingestion/IngestionCancellation.cs

#LineLine coverage
 1namespace Anichron.Worker.Ingestion;
 2
 3internal static class IngestionCancellation
 4{
 5    // A shutdown or an admin's cancel, never an ingestion failure.
 6    internal static bool IsRequested(Exception exception, CancellationToken ct)
 647        => exception is OperationCanceledException && ct.IsCancellationRequested;
 8}