1 write to Path
Aspire.Hosting (1)
Pipelines\PipelineOutputChange.cs (1)
29Path = path;
36 references to Path
Aspire.Hosting (2)
Pipelines\PipelineOutputDiffingExtensions.cs (2)
218var lines = changes.OrderBy(change => change.Path, comparer).ThenBy(change => change.Kind) 219.Select(change => $" {change.Kind}: {change.Path}");
Aspire.Hosting.Tests (34)
Pipelines\PipelineOutputChangeTests.cs (1)
22Assert.Equal(path, change.Path);
Pipelines\PipelineOutputComparisonTests.cs (9)
46change => { Assert.Equal(PipelineOutputChangeKind.Added, change.Kind); Assert.Equal("added.txt", change.Path); }, 47change => { Assert.Equal(PipelineOutputChangeKind.Changed, change.Kind); Assert.Equal("changed.txt", change.Path); }, 48change => { Assert.Equal(PipelineOutputChangeKind.Removed, change.Kind); Assert.Equal("removed.txt", change.Path); }); 52Assert.Equal(changes.Select(change => (change.Kind, change.Path)), repeated.Select(change => (change.Kind, change.Path))); 104Assert.Equal("artifact.txt", change.Path); 156Assert.Equal("artifact.txt", change.Path); 178Assert.Equal("artifact.txt", change.Path); 181Assert.Equal(Path.Combine("nested", "artifact.txt"), reverse.Path);
Pipelines\PipelineOutputGitFingerprintTests.cs (11)
57Assert.Equal(Path.GetRelativePath(root, path), change.Path); 177Assert.Equal(Path.GetRelativePath(root, path), change.Path); 224Assert.Equal("model.txt", change.Path); 262Assert.Equal("link", rawChange.Path); 273Assert.Equal(rawChange.Path, change.Path); 351Assert.Equal("link", change.Path); 383Assert.Equal("model.txt", change.Path); 514Assert.Equal(Path.GetRelativePath(root, path), change.Path); 564Assert.Equal(Path.GetRelativePath(root, path), change.Path); 588Assert.True(string.Equals(Path.GetRelativePath(requested, path), change.Path, PipelineOutputRoot.PathComparison));
Pipelines\PipelineOutputSelectionTests.cs (10)
88Assert.Equal(Path.GetRelativePath(root, artifact), change.Path); 244Assert.Equal("control.txt", change.Path); 292Assert.Equal(Path.GetRelativePath(root, artifact), change.Path); 314Assert.Equal(Path.GetRelativePath(root, artifact), change.Path); 358Assert.Equal("artifact.txt", change.Path); 661Assert.Equal(Path.GetRelativePath(root, link), change.Path); 690change => { Assert.Equal(PipelineOutputChangeKind.Added, change.Kind); Assert.Equal(Path.GetRelativePath(root, original), change.Path); }, 691change => { Assert.Equal(PipelineOutputChangeKind.Removed, change.Kind); Assert.Equal(Path.GetRelativePath(root, tracked), change.Path); }); 764Assert.Equal(new[] { tracked, direct }.Select(path => Path.GetRelativePath(root, path)).Order(PipelineOutputRoot.PathComparer), changes.Select(change => change.Path)); 868Assert.Equal(Path.GetRelativePath(root, artifact), change.Path);
Pipelines\PipelineOutputSnapshotterTests.cs (1)
692Assert.Equal(path, change.Path);
Pipelines\PipelineOutputStrategyTests.cs (2)
143Assert.Equal(Path.GetRelativePath(directory, path), change.Path); 609Assert.Equal(Path.Combine("ignored-child", "model.txt"), change.Path);