style(audio): fix formatting and add missing newlines

- Fix indentation and alignment in performance tests
- Add missing newlines at end of files
- Clean up error message formatting for consistency
This commit is contained in:
Alex P 2025-08-27 20:54:50 +00:00
parent 9dda569523
commit e3e7b898b5
4 changed files with 34 additions and 34 deletions

View File

@ -45,7 +45,7 @@ func TestPerformanceCriticalPaths(t *testing.T) {
// This is the most critical path that must not interfere with KVM // This is the most critical path that must not interfere with KVM
func testAudioFrameProcessingLatency(t *testing.T) { func testAudioFrameProcessingLatency(t *testing.T) {
const ( const (
frameCount = 1000 frameCount = 1000
maxLatencyPerFrame = 100 * time.Microsecond // Very strict requirement maxLatencyPerFrame = 100 * time.Microsecond // Very strict requirement
) )
@ -202,7 +202,7 @@ func testMemoryAllocationPatterns(t *testing.T) {
// testConcurrentAccessPerformance tests performance under concurrent access // testConcurrentAccessPerformance tests performance under concurrent access
func testConcurrentAccessPerformance(t *testing.T) { func testConcurrentAccessPerformance(t *testing.T) {
const ( const (
numGoroutines = 10 numGoroutines = 10
operationsPerGoroutine = 1000 operationsPerGoroutine = 1000
) )
@ -306,7 +306,7 @@ func TestRegressionDetection(t *testing.T) {
start := time.Now() start := time.Now()
for i := 0; i < 100; i++ { for i := 0; i < 100; i++ {
_ = ValidateAudioFrameFast(frameData) _ = ValidateAudioFrameFast(frameData)
RecordFrameReceived(len(frameData)) RecordFrameReceived(len(frameData))
} }
frameProcessingTime := time.Since(start) / 100 frameProcessingTime := time.Since(start) / 100