mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-28 15:32:13 +00:00
17 lines
339 B
Go
17 lines
339 B
Go
//go:build !darwin
|
|
|
|
package liveattestation
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
"testing"
|
|
)
|
|
|
|
func TestUnsupportedProviderReturnsExplicitPlatformError(t *testing.T) {
|
|
_, err := NewProvider().Generate(context.Background())
|
|
if !errors.Is(err, ErrUnsupportedPlatform) {
|
|
t.Fatalf("Generate() error = %v, want ErrUnsupportedPlatform", err)
|
|
}
|
|
}
|