Implement machine fingerprint hashing (T-501)

This commit is contained in:
ila
2026-07-20 00:19:13 +08:00
parent 94ea334d1c
commit 8d81276fd9
16 changed files with 465 additions and 9 deletions
@@ -13,6 +13,9 @@ import (
)
func TestPlatformStubFailsClosed(t *testing.T) {
if _, err := MachineHash(); !errors.Is(err, ErrUnsupported) {
t.Fatalf("MachineHash() error = %v, want ErrUnsupported", err)
}
platform := New()
if _, err := platform.IsRunning("test-app", "C:/test/App.exe"); !errors.Is(err, ErrUnsupported) {
t.Fatalf("IsRunning() error = %v, want ErrUnsupported", err)