Compare commits

..

1 commit

Author SHA1 Message Date
fc9fdb5fa7
chore: update insert_final_newline setting
Some checks failed
default / dotnet-default-workflow (pull_request) Failing after 51s
2026-05-16 12:25:55 +02:00
41 changed files with 41 additions and 41 deletions

View file

@ -22,4 +22,4 @@ internal sealed class Output : IDisposable
Stderr.Dispose(); Stderr.Dispose();
Stdin.Dispose(); Stdin.Dispose();
} }
} }

View file

@ -23,4 +23,4 @@ internal static class OutputTargetExtensions
yield return output.Stderr; yield return output.Stderr;
} }
} }
} }

View file

@ -49,4 +49,4 @@ public static class Program
cts.Cancel(); cts.Cancel();
} }
} }
} }

View file

@ -28,4 +28,4 @@ internal sealed class EchoCommand : Command
return 0; return 0;
} }
} }

View file

@ -43,4 +43,4 @@ internal sealed class EchoStdinCommand : Command
return 0; return 0;
} }
} }

View file

@ -31,4 +31,4 @@ internal sealed class EnvironmentCommand : Command
return 0; return 0;
} }
} }

View file

@ -20,4 +20,4 @@ internal sealed class ExitCommand : Command
await output.Stderr.WriteLineAsync($"Exit code set to {code}"); await output.Stderr.WriteLineAsync($"Exit code set to {code}");
return code; return code;
} }
} }

View file

@ -43,4 +43,4 @@ internal sealed class GenerateBlobCommand : Command
return 0; return 0;
} }
} }

View file

@ -44,4 +44,4 @@ internal sealed class GenerateClobCommand : Command
return 0; return 0;
} }
} }

View file

@ -42,4 +42,4 @@ internal sealed class LengthCommand : Command
return 0; return 0;
} }
} }

View file

@ -34,4 +34,4 @@ internal sealed class SleepCommand : Command
await output.Stdout.FlushAsync(CancellationToken.None); await output.Stdout.FlushAsync(CancellationToken.None);
return 0; return 0;
} }
} }

View file

@ -24,4 +24,4 @@ internal sealed class WorkingDirectoryCommand : Command
return 0; return 0;
} }
} }

View file

@ -178,4 +178,4 @@ internal sealed class CancellationTests
await Assert.That(stdout.ToString()).Contains("Done."); await Assert.That(stdout.ToString()).Contains("Done.");
} }
} }
} }

View file

@ -270,4 +270,4 @@ internal sealed class CommandTests
await Assert.That(cmd.StandardErrorPipe).IsNotEqualTo(pipeTarget); await Assert.That(cmd.StandardErrorPipe).IsNotEqualTo(pipeTarget);
} }
} }
} }

View file

@ -136,4 +136,4 @@ internal sealed class ExecuteTests
await Assert.That(lines).Contains("keep"); await Assert.That(lines).Contains("keep");
await Assert.That(lines).Contains("overwritten"); await Assert.That(lines).Contains("overwritten");
} }
} }

View file

@ -78,4 +78,4 @@ internal sealed class LineBreakTests
// Assert // Assert
await Assert.That(stdOutLines).IsEquivalentTo(["Foo", "", "Bar", "", "Baz"]); await Assert.That(stdOutLines).IsEquivalentTo(["Foo", "", "Bar", "", "Baz"]);
} }
} }

View file

@ -47,4 +47,4 @@ internal sealed class PathResolutionTests
await Assert.That(result.StandardOutput.Trim()).IsEqualTo("hi"); await Assert.That(result.StandardOutput.Trim()).IsEqualTo("hi");
} }
} }
} }

View file

@ -533,4 +533,4 @@ internal sealed class PipingTests
await Assert.That(stream3.ToArray()).IsEquivalentTo(stream4.ToArray()); await Assert.That(stream3.ToArray()).IsEquivalentTo(stream4.ToArray());
} }
} }
} }

View file

@ -55,4 +55,4 @@ internal sealed class ValidationTests
await Assert.That(result.IsSuccess).IsFalse(); await Assert.That(result.IsSuccess).IsFalse();
} }
} }
} }

View file

@ -32,4 +32,4 @@ internal sealed class PlatformAttribute : SkipAttribute
{ {
return Task.FromResult(!_os.Any(OperatingSystem.IsOSPlatform)); return Task.FromResult(!_os.Any(OperatingSystem.IsOSPlatform));
} }
} }

View file

@ -18,4 +18,4 @@ internal static class ProcessTree
return true; return true;
} }
} }
} }

View file

@ -29,4 +29,4 @@ internal sealed class TestEnvironment : IDisposable
{ {
_action(); _action();
} }
} }

View file

@ -31,4 +31,4 @@ internal sealed class TestTempDirectory : IDisposable
} }
catch (DirectoryNotFoundException) { } catch (DirectoryNotFoundException) { }
} }
} }

View file

@ -150,4 +150,4 @@ public partial class ArgumentsBuilder
return buffer.ToString(); return buffer.ToString();
} }
} }

View file

@ -88,4 +88,4 @@ public static class BufferedCommandExtensions
return command.ExecuteBufferedAsync(Console.OutputEncoding, cancellationToken); return command.ExecuteBufferedAsync(Console.OutputEncoding, cancellationToken);
} }
} }
} }

View file

@ -48,4 +48,4 @@ public partial class BufferedCommandResult
{ {
return result.StandardOutput; return result.StandardOutput;
} }
} }

View file

@ -126,4 +126,4 @@ public sealed partial class Command
return new Command(TargetFilePath, Arguments, WorkingDirPath, Environment, Validation, return new Command(TargetFilePath, Arguments, WorkingDirPath, Environment, Validation,
StandardInputPipe, StandardOutputPipe, target); StandardInputPipe, StandardOutputPipe, target);
} }
} }

View file

@ -228,4 +228,4 @@ public sealed partial class Command
} }
} }
} }
} }

View file

@ -196,4 +196,4 @@ public sealed partial class Command
{ {
return PipeSource.FromCommand(source) | target; return PipeSource.FromCommand(source) | target;
} }
} }

View file

@ -81,4 +81,4 @@ public sealed partial class Command
{ {
return $"{TargetFilePath} {Arguments}"; return $"{TargetFilePath} {Arguments}";
} }
} }

View file

@ -27,4 +27,4 @@ public class CommandExecutionException : Exception
/// Exit code returned by the process. /// Exit code returned by the process.
/// </summary> /// </summary>
public int ExitCode { get; } public int ExitCode { get; }
} }

View file

@ -61,4 +61,4 @@ public partial class CommandResult
{ {
return result.IsSuccess; return result.IsSuccess;
} }
} }

View file

@ -91,4 +91,4 @@ public sealed partial class CommandTask<TResult>
{ {
return commandTask.Task; return commandTask.Task;
} }
} }

View file

@ -47,4 +47,4 @@ public sealed class EnvironmentVariablesBuilder
{ {
return new Dictionary<string, string?>(_vars, _vars.Comparer); return new Dictionary<string, string?>(_vars, _vars.Comparer);
} }
} }

View file

@ -131,4 +131,4 @@ internal sealed class MemoryBufferStream : Stream
{ {
throw new NotSupportedException(); throw new NotSupportedException();
} }
} }

View file

@ -121,4 +121,4 @@ public abstract partial class PipeSource
return Create(async (destination, cancellationToken) => return Create(async (destination, cancellationToken) =>
await command.WithStandardOutputPipe(PipeTarget.ToStream(destination)).ExecuteAsync(cancellationToken)); await command.WithStandardOutputPipe(PipeTarget.ToStream(destination)).ExecuteAsync(cancellationToken));
} }
} }

View file

@ -311,4 +311,4 @@ public partial class PipeTarget
} }
} }
} }
} }

View file

@ -43,4 +43,4 @@ internal sealed partial class Process
SIGALRM = 14, SIGALRM = 14,
SIGTERM = 15, SIGTERM = 15,
} }
} }

View file

@ -30,4 +30,4 @@ internal sealed partial class Process
CTRL_LOGOFF_EVENT = 5, // SIGHUP CTRL_LOGOFF_EVENT = 5, // SIGHUP
CTRL_SHUTDOWN_EVENT = 6, // SIGTERM CTRL_SHUTDOWN_EVENT = 6, // SIGTERM
} }
} }

View file

@ -178,4 +178,4 @@ internal sealed partial class Process : IDisposable
{ {
_process.Dispose(); _process.Dispose();
} }
} }

View file

@ -18,4 +18,4 @@ public enum ValidationMode
/// Ensure that the command returned a zero exit code. /// Ensure that the command returned a zero exit code.
/// </summary> /// </summary>
ZeroExitCode = 0b1, ZeroExitCode = 0b1,
} }