24 lines
646 B
Go
24 lines
646 B
Go
//go:build !windows
|
|
|
|
package windows
|
|
|
|
import (
|
|
"errors"
|
|
"testing"
|
|
|
|
"softbox.local/core/application/launch"
|
|
)
|
|
|
|
func TestPlatformStubFailsClosed(t *testing.T) {
|
|
platform := New()
|
|
if _, err := platform.IsRunning("test-app", "C:/test/App.exe"); !errors.Is(err, ErrUnsupported) {
|
|
t.Fatalf("IsRunning() error = %v, want ErrUnsupported", err)
|
|
}
|
|
if _, err := platform.IsCompatible("windows-10"); !errors.Is(err, ErrUnsupported) {
|
|
t.Fatalf("IsCompatible() error = %v, want ErrUnsupported", err)
|
|
}
|
|
if _, err := platform.Start(launch.Command{}); !errors.Is(err, ErrUnsupported) {
|
|
t.Fatalf("Start() error = %v, want ErrUnsupported", err)
|
|
}
|
|
}
|