Files
sub2api/backend/internal/platform/liveattestation/attestation_unsupported_test.go
T

21 lines
522 B
Go
Raw Normal View History

//go:build !darwin
package liveattestation
import (
"context"
"errors"
"testing"
)
func TestUnsupportedProviderReturnsExplicitPlatformError(t *testing.T) {
provider := NewProvider()
if err := provider.Check(context.Background()); !errors.Is(err, ErrUnsupportedPlatform) {
t.Fatalf("Check() error = %v, want ErrUnsupportedPlatform", err)
}
_, err := provider.Generate(context.Background())
if !errors.Is(err, ErrUnsupportedPlatform) {
t.Fatalf("Generate() error = %v, want ErrUnsupportedPlatform", err)
}
}