feat: initial commit

This commit is contained in:
2026-04-16 19:39:02 +02:00
commit 50d1686b1e
44 changed files with 2089 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package testutil
import "context"
type FakeFileDownloader struct {
Data []byte
MimeType string
Error error
}
func (f *FakeFileDownloader) Download(_ context.Context, _ string) ([]byte, string, error) {
return f.Data, f.MimeType, f.Error
}
type FakeAudioConverter struct {
Output []byte
Error error
}
func (f *FakeAudioConverter) Convert(_ context.Context, _ []byte, _, _ string) ([]byte, error) {
if f.Output != nil {
return f.Output, f.Error
}
return []byte("converted-audio"), f.Error
}