mirror of https://github.com/jetkvm/kvm.git
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:
parent
9dda569523
commit
e3e7b898b5
|
@ -45,7 +45,7 @@ func TestPerformanceCriticalPaths(t *testing.T) {
|
|||
// This is the most critical path that must not interfere with KVM
|
||||
func testAudioFrameProcessingLatency(t *testing.T) {
|
||||
const (
|
||||
frameCount = 1000
|
||||
frameCount = 1000
|
||||
maxLatencyPerFrame = 100 * time.Microsecond // Very strict requirement
|
||||
)
|
||||
|
||||
|
@ -202,7 +202,7 @@ func testMemoryAllocationPatterns(t *testing.T) {
|
|||
// testConcurrentAccessPerformance tests performance under concurrent access
|
||||
func testConcurrentAccessPerformance(t *testing.T) {
|
||||
const (
|
||||
numGoroutines = 10
|
||||
numGoroutines = 10
|
||||
operationsPerGoroutine = 1000
|
||||
)
|
||||
|
||||
|
@ -306,7 +306,7 @@ func TestRegressionDetection(t *testing.T) {
|
|||
start := time.Now()
|
||||
for i := 0; i < 100; i++ {
|
||||
_ = ValidateAudioFrameFast(frameData)
|
||||
RecordFrameReceived(len(frameData))
|
||||
RecordFrameReceived(len(frameData))
|
||||
}
|
||||
frameProcessingTime := time.Since(start) / 100
|
||||
|
||||
|
|
Loading…
Reference in New Issue