This commit is contained in:
@@ -134,6 +134,16 @@ func TestLowValueThumbnailDetection(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestGoogleVideoCollectorPrefersYouTubeDerivedThumbnail(t *testing.T) {
|
||||
result := googleVideoCollector{}.Enrich(nil, SearchResult{
|
||||
Link: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
|
||||
ThumbnailURL: "https://example.com/some-search-thumb.jpg",
|
||||
})
|
||||
if result.ThumbnailURL != "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg" {
|
||||
t.Fatalf("expected derived youtube thumbnail, got %q", result.ThumbnailURL)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGeminiCandidateLimitNeverExceedsCandidates(t *testing.T) {
|
||||
if got := GeminiCandidateLimit(9); got != 9 {
|
||||
t.Fatalf("expected Gemini limit to stay within candidate count, got %d", got)
|
||||
|
||||
Reference in New Issue
Block a user