mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2026-04-22 23:57:20 +08:00
ea03aa832d
- implement WebP streaming with multipart support - add snapshot endpoint for WebP format with quality options - introduce WebP encoding using pure Go library without FFmpeg - update documentation and links for new WebP features
17 lines
330 B
Go
17 lines
330 B
Go
package webp
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestInit(t *testing.T) {
|
|
// Verify Init() runs without panicking and registers API endpoints.
|
|
// api.HandleFunc registrations are idempotent so calling Init multiple times is safe.
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
t.Fatalf("Init() panicked: %v", r)
|
|
}
|
|
}()
|
|
Init()
|
|
}
|