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)
29
var snapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
}));
71
})), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
}));
91
var first = new DefaultPipelineOutputSnapshotter(snapshotter, new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
}));
92
var second = new DefaultPipelineOutputSnapshotter(snapshotter, new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
}));
124
})), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
}));
143
var snapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
}));
166
var snapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
}));
Pipelines\PipelineOutputDiffingTests.cs (8)
46
Assert.Equal(PipelineOutputDiffMode.
FileSystem
, options.Mode);
72
options.Mode = PipelineOutputDiffMode.
FileSystem
;
79
Assert.Equal(PipelineOutputDiffMode.
FileSystem
, options.Mode);
97
options.Mode = PipelineOutputDiffMode.
FileSystem
;
191
builder.Services.Configure<PipelineOutputDiffOptions>(options => options.Mode = PipelineOutputDiffMode.
FileSystem
);
562
[InlineData(PipelineOutputDiffMode.
FileSystem
)]
925
options.Mode = PipelineOutputDiffMode.
FileSystem
;
942
options.Mode = requireGit ? PipelineOutputDiffMode.Git : PipelineOutputDiffMode.
FileSystem
;
Pipelines\PipelineOutputGitFingerprintTests.cs (1)
41
var 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
)]
140
if (mode == PipelineOutputDiffMode.
FileSystem
)
Pipelines\PipelineOutputSelectionTests.cs (14)
19
[InlineData(PipelineOutputDiffMode.
FileSystem
)]
46
Assert.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
)]
81
if (mode is not PipelineOutputDiffMode.
FileSystem
)
94
[InlineData(PipelineOutputDiffMode.
FileSystem
, false)]
95
[InlineData(PipelineOutputDiffMode.
FileSystem
, true)]
133
[InlineData(PipelineOutputDiffMode.
FileSystem
)]
152
Assert.Equal((mode is not PipelineOutputDiffMode.
FileSystem
? new[] { json, source, tracked } : new[] { ignored, json, source, tracked }).Order(PipelineOutputRoot.PathComparer), selected.Order(PipelineOutputRoot.PathComparer));
174
var options = new PipelineOutputDiffOptions { Mode = useGit ? PipelineOutputDiffMode.Git : PipelineOutputDiffMode.
FileSystem
};
281
var options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
};
436
Assert.Equal(PipelineOutputDiffMode.
FileSystem
, options.Mode);
509
var options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
};
531
var options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
};
Pipelines\PipelineOutputStrategyTests.cs (9)
26
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), runner, Options.Create(new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
}));
48
var options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.
FileSystem
};
107
[InlineData(PipelineOutputDiffMode.
FileSystem
)]
124
[InlineData(PipelineOutputDiffMode.
FileSystem
)]
144
Assert.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
)]