add legacy mode and some cleanup
This commit is contained in:
@@ -115,6 +115,19 @@ func TestGetProcessesLockingFileShortPathDoesNotPanic(t *testing.T) {
|
||||
_ = getProcessesLockingFile("a")
|
||||
}
|
||||
|
||||
func TestIsBackstageLoaderExportSupportsBothCommandVersions(t *testing.T) {
|
||||
for _, name := range []string{"ReflectiveLoader", "x012abc", "xffffff"} {
|
||||
if !isBackstageLoaderExport(name) {
|
||||
t.Fatalf("expected loader export %q to be accepted", name)
|
||||
}
|
||||
}
|
||||
for _, name := range []string{"reflectiveloader", "x012ABc", "x12345", "x1234567", "other"} {
|
||||
if isBackstageLoaderExport(name) {
|
||||
t.Fatalf("expected loader export %q to be rejected", name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func testEnvironmentBlock(t *testing.T, entries ...string) []uint16 {
|
||||
t.Helper()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user