add legacy mode and some cleanup

This commit is contained in:
KingKDot
2026-08-20 09:01:27 -05:00
parent 3b6adf7b97
commit a9b7ca67ea
14 changed files with 257 additions and 100 deletions
@@ -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()