5 instantiations of GitPipelineOutputReader
Aspire.Hosting (1)
Pipelines\GitPipelineOutputReader.cs (1)
69return new(Path.GetFullPath(pathToRoot.IsEmpty ? "." : pathToRoot.ToString(), directory), processRunner);
Aspire.Hosting.Tests (4)
Pipelines\PipelineOutputStrategyTests.cs (4)
416var git = new GitPipelineOutputReader(workspace.Path, runner); 452var git = new GitPipelineOutputReader(workspace.Path, runner); 481var git = new GitPipelineOutputReader(workspace.Path, runner); 547var git = new GitPipelineOutputReader(workspace.Path, runner);
52 references to GitPipelineOutputReader
Aspire.Hosting (7)
Pipelines\DefaultPipelineOutputSnapshotter.cs (2)
57var git = _mode is PipelineOutputDiffMode.Auto or PipelineOutputDiffMode.Git 58? await GitPipelineOutputReader.TryCreateAsync(directory, _processRunner, ct).ConfigureAwait(false)
Pipelines\GitPipelineOutputReader.cs (1)
28internal static async Task<GitPipelineOutputReader?> TryCreateAsync(string directory, IProcessRunner processRunner, CancellationToken cancellationToken)
Pipelines\GitPipelineOutputSnapshotter.cs (3)
15GitPipelineOutputReader git, IReadOnlyList<GitPipelineOutputReader.SelectedFile> entries, CancellationToken cancellationToken) 54GitPipelineOutputReader.ThrowMalformed("object IDs", "count", [],
Pipelines\PipelineOutputSnapshotter.cs (1)
43internal async Task<IReadOnlyDictionary<string, PipelineOutputFileSnapshot>> CaptureAsync(string directory, Matcher matcher, GitPipelineOutputReader? git, CancellationToken cancellationToken)
Aspire.Hosting.Tests (45)
Pipelines\PipelineOutputSelectionTests.cs (27)
33var git = Assert.IsType<GitPipelineOutputReader>(await GitPipelineOutputReader.TryCreateAsync(root, new DefaultProcessRunner(), TestContext.Current.CancellationToken)); 69var git = Assert.IsType<GitPipelineOutputReader>(await GitPipelineOutputReader.TryCreateAsync(root, new DefaultProcessRunner(), TestContext.Current.CancellationToken)); 279var git = Assert.IsType<GitPipelineOutputReader>(await GitPipelineOutputReader.TryCreateAsync(root, new DefaultProcessRunner(), TestContext.Current.CancellationToken)); 301Assert.Null(await GitPipelineOutputReader.TryCreateAsync(root, new DefaultProcessRunner(), TestContext.Current.CancellationToken)); 388Assert.Null(await GitPipelineOutputReader.TryCreateAsync(root, missingRunner, TestContext.Current.CancellationToken)); 390var git = Assert.IsType<GitPipelineOutputReader>(await GitPipelineOutputReader.TryCreateAsync(root, new DefaultProcessRunner(), TestContext.Current.CancellationToken)); 395await Assert.ThrowsAnyAsync<OperationCanceledException>(() => GitPipelineOutputReader.TryCreateAsync(root, new DefaultProcessRunner(), canceled.Token)); 554var git = Assert.IsType<GitPipelineOutputReader>(await GitPipelineOutputReader.TryCreateAsync(root, new DefaultProcessRunner(), TestContext.Current.CancellationToken)); 579var git = Assert.IsType<GitPipelineOutputReader>(await GitPipelineOutputReader.TryCreateAsync(root, new DefaultProcessRunner(), TestContext.Current.CancellationToken)); 598var git = Assert.IsType<GitPipelineOutputReader>(await GitPipelineOutputReader.TryCreateAsync(root, new DefaultProcessRunner(), TestContext.Current.CancellationToken)); 632var git = Assert.IsType<GitPipelineOutputReader>(await GitPipelineOutputReader.TryCreateAsync(Path.Combine(root, "nested"), new DefaultProcessRunner(), TestContext.Current.CancellationToken));
Pipelines\PipelineOutputStrategyTests.cs (18)
159var failure = await Assert.ThrowsAsync<DistributedApplicationException>(() => GitPipelineOutputReader.TryCreateAsync( 193var failure = Assert.Throws<DistributedApplicationException>(() => GitPipelineOutputReader.ThrowIfUnsupportedPath(path)); 254var git = Assert.IsType<GitPipelineOutputReader>(await GitPipelineOutputReader.TryCreateAsync(workspace.Path, runner, TestContext.Current.CancellationToken)); 293var git = Assert.IsType<GitPipelineOutputReader>(await GitPipelineOutputReader.TryCreateAsync( 320var entry = GitPipelineOutputReader.StatusEntry.Parse(record); 339var indexFailure = Assert.Throws<DistributedApplicationException>(() => GitPipelineOutputReader.IndexEntry.Parse(index)); 340var statusFailure = Assert.Throws<DistributedApplicationException>(() => GitPipelineOutputReader.StatusEntry.Parse(status)); 362var entry = GitPipelineOutputReader.IndexEntry.Parse(record); 386var failure = Assert.Throws<DistributedApplicationException>(() => GitPipelineOutputReader.IndexEntry.Parse(record)); 416var git = new GitPipelineOutputReader(workspace.Path, runner); 452var git = new GitPipelineOutputReader(workspace.Path, runner); 481var git = new GitPipelineOutputReader(workspace.Path, runner); 517GitPipelineOutputReader.ThrowMalformed("index", "record", "invalid record", additionalData)); 547var git = new GitPipelineOutputReader(workspace.Path, runner);