//go:build !unix package hostguard import ( "context" "errors" "testing" ) func TestUnsupportedLock(t *testing.T) { if _, err := Capture(t.TempDir(), "shop.example"); !errors.Is(err, ErrUnsupported) { t.Fatal(err) } g := Guard{DataDir: t.TempDir(), LockDir: t.TempDir()} if err := g.Activate(context.Background(), "shop.example", "box", nil); !errors.Is(err, ErrUnsupported) { t.Fatal(err) } }