Create exported extractortest package with MockBrowser, MockDocument,
and MockNode that support selector-based responses for testing site
extractors without a real browser.
Add extraction tests for DuckDuckGo (result parsing, empty results, no
links, full search flow) and Powerball (drawing parsing, next drawing
parsing with billion/million, error cases, full GetCurrent flow).
Closes#21
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Claude
merged commit dcc977c0cc into main2026-02-15 16:38:15 +00:00
Claude
deleted branch test/site-extractor-mocks2026-02-15 16:38:15 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
extractortestpackage with exportedMockBrowser,MockDocument,MockNodeChildren map[string]NodesTest plan
go build ./...passesgo test ./...passes (14 new tests across DuckDuckGo and Powerball)go vet ./...passesCloses #21
Parent: #31 (Phase 4, PR 12)