< Summary

Information
Class: Anichron.Worker.Ingestion.Proxy.FfmpegLaunch
Assembly: Anichron.Worker
File(s): /home/runner/work/anichron/anichron/src/Anichron.Worker/Ingestion/Proxy/FfmpegLaunch.cs
Tag: 19_45211875487
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 14
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
RunFfmpegQuietlyAsync()100%22100%

File(s)

/home/runner/work/anichron/anichron/src/Anichron.Worker/Ingestion/Proxy/FfmpegLaunch.cs

#LineLine coverage
 1namespace Anichron.Worker.Ingestion.Proxy;
 2
 3internal static class FfmpegLaunch
 4{
 5    public static async Task<byte[]> RunFfmpegQuietlyAsync(
 6        this IProcessLauncher processLauncher, string ffmpegPath, IReadOnlyList<string> arguments, CancellationToken ct)
 197    {
 198        string[] quiet = ["-hide_banner", "-loglevel", "error", .. arguments];
 199        var result = await processLauncher.RunAsync(ffmpegPath, quiet, ct);
 1910        if (result.ExitCode != 0)
 411            throw new FfmpegException(ffmpegPath, string.Join(" ", quiet), result.ExitCode, result.StandardError);
 1512        return result.StandardOutput;
 1513    }
 14}

Methods/Properties

RunFfmpegQuietlyAsync()