privatevoice.src/app_live_caption_test.go
@@ -114,6 +114,23 @@ } } func TestHasEngineReflectsCurrentEngine(t *testing.T) { a := &App{} if a.hasEngine() { t.Fatal("new app should not report an engine") } a.replaceEngine(plainTestEngine{}) if !a.hasEngine() { t.Fatal("app should report an engine after replaceEngine") } a.replaceEngine(nil) if a.hasEngine() { t.Fatal("app should not report an engine after clearing") } } func TestShouldStartHoldPreCaptureLocked(t *testing.T) { a := &App{} a.holdPreCaptureEnabled.Store(true)