beads/internal/testutil/container_provider_windows.go
2026-04-08 14:45:18 -07:00

24 lines
623 B
Go

//go:build windows
package testutil
import "fmt"
// ContainerProvider is not supported on Windows.
type ContainerProvider struct {
port int
}
// NewContainerProvider is not supported on Windows.
func NewContainerProvider() (*ContainerProvider, error) {
return nil, fmt.Errorf("ContainerProvider not available on Windows")
}
// Port returns 0 on Windows.
func (p *ContainerProvider) Port() int { return 0 }
// WritePortFile is a no-op on Windows.
func (p *ContainerProvider) WritePortFile(serverDir string) error { return nil }
// Stop is a no-op on Windows.
func (p *ContainerProvider) Stop() error { return nil }