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:
@@ -83,4 +83,4 @@ func (f Format) IsValid() bool {
|
||||
f.Channels == PCM16kMono.Channels &&
|
||||
f.SampleBits == PCM16kMono.SampleBits &&
|
||||
f.Encoding == PCM16kMono.Encoding
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,4 +101,4 @@ func TestPCMFromWAVRejectsNonCanonical(t *testing.T) {
|
||||
if _, _, err := PCMFromWAV(wav); err == nil {
|
||||
t.Fatalf("non-PCM format should error")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ func WAVFromPCM(format Format, pcm []byte) ([]byte, error) {
|
||||
// fmt chunk
|
||||
copy(out[12:16], []byte("fmt "))
|
||||
binary.LittleEndian.PutUint32(out[16:20], 16) // fmt chunk size
|
||||
binary.LittleEndian.PutUint16(out[20:22], 1) // PCM
|
||||
binary.LittleEndian.PutUint16(out[20:22], 1) // PCM
|
||||
binary.LittleEndian.PutUint16(out[22:24], uint16(format.Channels))
|
||||
binary.LittleEndian.PutUint32(out[24:28], uint32(format.SampleRate))
|
||||
byteRate := uint32(format.SampleRate) * uint32(format.Channels) * uint32(format.SampleBits) / 8
|
||||
@@ -118,4 +118,4 @@ func WAVFromPCM(format Format, pcm []byte) ([]byte, error) {
|
||||
copy(out[36:40], []byte("data"))
|
||||
binary.LittleEndian.PutUint32(out[40:44], uint32(len(pcm)))
|
||||
return out, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user