feat: add e2e tests + benchmarks

- e2e_test.go: AudioBuffer lifecycle, interrupt detection, concurrent chunks
- Mock Whisper multipart transcription, realistic sine wave RMS validation
- Benchmarks: addChunk 2.7µs, getAudio 155µs, RMS 18µs, VAD 4.9µs
This commit is contained in:
2026-02-20 06:45:22 -05:00
parent 9d4d48e693
commit 2c578aad44
3 changed files with 281 additions and 0 deletions

1
go.mod
View File

@@ -11,6 +11,7 @@ require (
require (
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/google/uuid v1.6.0 // indirect