testingscraper

package
v0.0.0-...-fdc35f2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestIsin    = "ISIN00001234"
	TestInfoURL = "http://127.0.0.1/info/ISIN00001234"
)

exported constants

Variables

This section is empty.

Functions

func CheckError

func CheckError(t *testing.T, prefix string, found, expected error) bool

CheckError is ...

func GetDoc

func GetDoc(relpath string) (*goquery.Document, error)

GetDoc returns the goquery.Document created by the local html file "test/internal/quotescaper/<relpath>".

func NewDocumentFromFile

func NewDocumentFromFile(path string) (*goquery.Document, error)

NewDocumentFromFile returns the goquery.Document created by a local html file

func NewDocumentFromZipFile

func NewDocumentFromZipFile(file *zip.File) (*goquery.Document, error)

NewDocumentFromZipFile returns the goquery.Document created by a zipped html file

func TestGetInfo

func TestGetInfo(t *testing.T, prefix string, scr scraperTest) (*http.Request, error)

TestGetInfo is

func TestGetSearch

func TestGetSearch(t *testing.T, prefix string, scr scraperTest) (*http.Request, error)

TestGetSearch is

Types

This section is empty.

Jump to

Keyboard shortcuts

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