ithelper

package
v0.8.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBrowser

func CreateBrowser(t *testing.T) *core.Browser

CreateBrowser creates a browser configured for integration tests and closes it when the test finishes. Respects OPENSERP_INTEGRATION_HEADFUL for debugging (browser and page are left open for inspection).

func EngineOptions added in v0.8.3

func EngineOptions() core.SearchEngineOptions

EngineOptions returns engine options tuned for live-site integration runs. Real SERPs (Baidu especially) hydrate result cards client-side and can take well past the 5s default selector timeout on a first visit.

func HandleError

func HandleError(t *testing.T, operation string, err error)

HandleError skips on captcha/block/rate-limit/timeout (expected against live engines), fatals on other errors. In strict mode everything fatals.

func RunEngineTests added in v0.8.3

func RunEngineTests(t *testing.T, newEngine func(*core.Browser) core.SearchEngine)

RunEngineTests runs the live web + image search smoke checks shared by every engine's integration test: results come back, and the first one has a URL and a title. newEngine receives a fresh browser per subtest.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL