Bump version and add changelog

This commit is contained in:
mixeme
2026-06-15 08:23:24 +03:00
parent 91080a7a9d
commit ddabfd2da2
7 changed files with 184 additions and 69 deletions
+25
View File
@@ -0,0 +1,25 @@
//go:build windows
package core
import "testing"
func TestParseRegistryRunValue(t *testing.T) {
output := `
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
PySentry REG_SZ "D:\Apps\PySentry\pysentry.exe"
`
value, ok := parseRegistryRunValue(output)
if !ok {
t.Fatal("expected registry value to parse")
}
if value != `D:\Apps\PySentry\pysentry.exe` {
t.Fatalf("unexpected value: %q", value)
}
}
func TestSameWindowsPathIgnoresCaseAndQuotes(t *testing.T) {
if !sameWindowsPath(`"D:\Apps\PySentry\pysentry.exe"`, `d:\apps\pysentry\pysentry.exe`) {
t.Fatal("expected paths to match")
}
}