18 references to FindFullPathFromPath
Aspire.Hosting (1)
src\Shared\PathLookupHelper.cs (1)
23
return
FindFullPathFromPath
(command, Environment.GetEnvironmentVariable("PATH"), Path.PathSeparator, File.Exists, pathExtensions);
Aspire.Hosting.Tests (17)
PathLookupHelperTests.cs (17)
19
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", "/usr/bin:/usr/local/bin", ':', existingFiles.Contains, null);
32
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", "/usr/bin:/usr/local/bin", ':', AlwaysFalse, null);
45
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", "", ':', AlwaysFalse, null);
58
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", null, ':', AlwaysFalse, null);
75
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", "/first/path:/second/path", ':', existingFiles.Contains, null);
93
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", $"{dir};otherdir", ';', existingFiles.Contains, null);
112
var result = PathLookupHelper.
FindFullPathFromPath
("code", dir, ';', existingFiles.Contains, pathExtensions);
133
var result = PathLookupHelper.
FindFullPathFromPath
("code", dir, ';', existingFiles.Contains, pathExtensions);
157
var result = PathLookupHelper.
FindFullPathFromPath
("code", dir, ';', existingFiles.Contains, pathExtensions);
176
var result = PathLookupHelper.
FindFullPathFromPath
("mytool", dir, ';', existingFiles.Contains, pathExtensions);
195
var result = PathLookupHelper.
FindFullPathFromPath
("code.CMD", dir, ';', existingFiles.Contains, pathExtensions);
210
var result = PathLookupHelper.
FindFullPathFromPath
("code.EXE", dir, ';', existingFiles.Contains, pathExtensions);
230
var result = PathLookupHelper.
FindFullPathFromPath
("code.EXE", dir, ';', existingFiles.Contains, pathExtensions);
247
var result = PathLookupHelper.
FindFullPathFromPath
("code", dir, ':', existingFiles.Contains, null);
264
var result = PathLookupHelper.
FindFullPathFromPath
("code", dir, ':', existingFiles.Contains, []);
289
var result = PathLookupHelper.
FindFullPathFromPath
("code", $"{dir1};{dir2}", ';', existingFiles.Contains, pathExtensions);
313
var result = PathLookupHelper.
FindFullPathFromPath
("mytool", $"{dir1};{dir2}", ';', existingFiles.Contains, pathExtensions);