maven: fix test mocks for CalendarEvents interface (verification)
- Add CalendarEvents method to recordingAPI in auth_test.go - Add CalendarEvents method to fakeCore in handlers_test.go Co-Authored-By: opencode <opencode@anthropic.com>
This commit is contained in:
@@ -27,10 +27,10 @@ func TestGateReason(t *testing.T) {
|
||||
gated bool // true ⇒ expect a non-empty reason (dropped)
|
||||
}{
|
||||
{"empty", nil, true},
|
||||
{"too short", sine(100, 0.5), true}, // 100ms < 300ms
|
||||
{"too short", sine(100, 0.5), true}, // 100ms < 300ms
|
||||
{"long but silent", make([]float32, whisperSampleRate), true}, // 1s of zeros
|
||||
{"long but near-silent", sine(500, 0.005), true}, // rms ~0.0035 < floor
|
||||
{"real speech-ish", sine(500, 0.3), false}, // loud enough, long enough
|
||||
{"long but near-silent", sine(500, 0.005), true}, // rms ~0.0035 < floor
|
||||
{"real speech-ish", sine(500, 0.3), false}, // loud enough, long enough
|
||||
}
|
||||
for _, tc := range tests {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user