43 references to FileSystem
Aspire.Hosting (1)
Pipelines\PipelineOutputDiffMode.cs (1)
15/// Uses <see cref="Git"/> when the executable and a usable worktree are available; otherwise uses <see cref="FileSystem"/>.
Aspire.Hosting.Tests (42)
Pipelines\PipelineOutputComparisonTests.cs (7)
29var snapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem })); 71})), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem })); 91var first = new DefaultPipelineOutputSnapshotter(snapshotter, new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem })); 92var second = new DefaultPipelineOutputSnapshotter(snapshotter, new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem })); 124})), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem })); 143var snapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem })); 166var snapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem }));
Pipelines\PipelineOutputDiffingTests.cs (8)
46Assert.Equal(PipelineOutputDiffMode.FileSystem, options.Mode); 72options.Mode = PipelineOutputDiffMode.FileSystem; 79Assert.Equal(PipelineOutputDiffMode.FileSystem, options.Mode); 97options.Mode = PipelineOutputDiffMode.FileSystem; 191builder.Services.Configure<PipelineOutputDiffOptions>(options => options.Mode = PipelineOutputDiffMode.FileSystem); 562[InlineData(PipelineOutputDiffMode.FileSystem)] 925options.Mode = PipelineOutputDiffMode.FileSystem; 942options.Mode = requireGit ? PipelineOutputDiffMode.Git : PipelineOutputDiffMode.FileSystem;
Pipelines\PipelineOutputGitFingerprintTests.cs (1)
41var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = useGit ? PipelineOutputDiffMode.Git : PipelineOutputDiffMode.FileSystem }));
Pipelines\PipelineOutputResolutionTests.cs (3)
106[InlineData(false, PipelineOutputDiffMode.FileSystem)] 107[InlineData(true, PipelineOutputDiffMode.FileSystem)] 140if (mode == PipelineOutputDiffMode.FileSystem)
Pipelines\PipelineOutputSelectionTests.cs (14)
19[InlineData(PipelineOutputDiffMode.FileSystem)] 46Assert.Equal(mode is not PipelineOutputDiffMode.FileSystem ? new[] { readme } : new[] { readme, model }, selected.Order(PipelineOutputRoot.PathComparer)); 52[InlineData(false, PipelineOutputDiffMode.FileSystem)] 54[InlineData(true, PipelineOutputDiffMode.FileSystem)] 81if (mode is not PipelineOutputDiffMode.FileSystem) 94[InlineData(PipelineOutputDiffMode.FileSystem, false)] 95[InlineData(PipelineOutputDiffMode.FileSystem, true)] 133[InlineData(PipelineOutputDiffMode.FileSystem)] 152Assert.Equal((mode is not PipelineOutputDiffMode.FileSystem ? new[] { json, source, tracked } : new[] { ignored, json, source, tracked }).Order(PipelineOutputRoot.PathComparer), selected.Order(PipelineOutputRoot.PathComparer)); 174var options = new PipelineOutputDiffOptions { Mode = useGit ? PipelineOutputDiffMode.Git : PipelineOutputDiffMode.FileSystem }; 281var options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem }; 436Assert.Equal(PipelineOutputDiffMode.FileSystem, options.Mode); 509var options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem }; 531var options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem };
Pipelines\PipelineOutputStrategyTests.cs (9)
26var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), runner, Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem })); 48var options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem }; 107[InlineData(PipelineOutputDiffMode.FileSystem)] 124[InlineData(PipelineOutputDiffMode.FileSystem)] 144Assert.Equal(mode is PipelineOutputDiffMode.FileSystem ? 0 : 1, runner.Calls.Count(args => args.Contains("rev-parse"))); 615[InlineData(false, false, PipelineOutputDiffMode.FileSystem)] 616[InlineData(true, false, PipelineOutputDiffMode.FileSystem)] 617[InlineData(false, true, PipelineOutputDiffMode.FileSystem)] 618[InlineData(true, true, PipelineOutputDiffMode.FileSystem)]