Documentation
¶
Overview ¶
Package sdkparity holds test-only parity harnesses that run the same behavioral assertions against the public SDK and reference-app implementations. It is internal to pkg/speechkit and never part of the public surface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTTSRouterParity ¶
func RunTTSRouterParity(t *testing.T, h TTSRouterHarness)
RunTTSRouterParity runs the shared provider-kind routing assertions.
Types ¶
type TTSProviderKind ¶
type TTSProviderKind string
TTSProviderKind classifies a provider by where it runs.
const ( TTSProviderKindLocalBuiltIn TTSProviderKind = "local_built_in" TTSProviderKindLocalProvider TTSProviderKind = "local_provider" TTSProviderKindCloudProvider TTSProviderKind = "cloud_provider" TTSProviderKindDirectProvider TTSProviderKind = "direct_provider" )
Provider kinds understood by the parity harness.
type TTSProviderSpec ¶
type TTSProviderSpec struct {
Name string
Kind TTSProviderKind
Err error
}
TTSProviderSpec describes one fake provider handed to the router.
type TTSRouterHarness ¶
type TTSRouterHarness struct {
Synthesize func(ctx context.Context, strategy TTSStrategy, providers []TTSProviderSpec) (TTSRouterResult, error)
}
TTSRouterHarness adapts a concrete TTS router to the parity suite.
type TTSRouterResult ¶
TTSRouterResult reports which provider served a request and the call order.
type TTSStrategy ¶
type TTSStrategy string
TTSStrategy is the routing strategy under test.
const ( TTSStrategyCloudFirst TTSStrategy = "cloud-first" TTSStrategyCloudOnly TTSStrategy = "cloud-only" TTSStrategyLocalOnly TTSStrategy = "local-only" )
Routing strategies understood by the parity harness.