20 lines
524 B
Go
20 lines
524 B
Go
package saas
|
|||
|
|
|
||
|
|
import "testing"
|
||
|
|
|
||
|
|
func TestConsentWithdrawalConversationImpact(t *testing.T) {
|
||
|
|
for _, consentType := range []string{
|
||
|
|
ConsentTranscriptStorage,
|
||
|
|
ConsentRawAudioStorage,
|
||
|
|
ConsentStoryExtraction,
|
||
|
|
ConsentPersonalMemory,
|
||
|
|
} {
|
||
|
|
if !consentWithdrawalStopsConversation(consentType) {
|
||
|
|
t.Fatalf("live conversation consent %q did not trigger a stop", consentType)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if consentWithdrawalStopsConversation(ConsentFamilySharing) {
|
||
|
|
t.Fatal("family sharing withdrawal should not interrupt live audio")
|
||
|
|
}
|
||
|
|
}
|