Documentation ¶
Index ¶
- Constants
- func CheckError(t *testing.T, prefix string, found, expected error) bool
- func GetDoc(relpath string) (*goquery.Document, error)
- func NewDocumentFromFile(path string) (*goquery.Document, error)
- func NewDocumentFromZipFile(file *zip.File) (*goquery.Document, error)
- func TestGetInfo(t *testing.T, prefix string, scr scraperTest) (*http.Request, error)
- func TestGetSearch(t *testing.T, prefix string, scr scraperTest) (*http.Request, error)
- func TestNewQuoteGetter(t *testing.T, fn quotegetter.NewQuoteGetterFunc)
Constants ¶
View Source
const ( TestIsin = "ISIN00001234" TestInfoURL = "http://127.0.0.1/info/ISIN00001234" )
exported constants
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
CheckError is ...
func GetDoc ¶
GetDoc returns the goquery.Document created by the local html file "test/internal/quotescaper/<relpath>".
func NewDocumentFromFile ¶
NewDocumentFromFile returns the goquery.Document created by a local html file
func NewDocumentFromZipFile ¶
NewDocumentFromZipFile returns the goquery.Document created by a zipped html file
func TestGetInfo ¶
TestGetInfo is
func TestGetSearch ¶
TestGetSearch is
func TestNewQuoteGetter ¶ added in v0.2.0
func TestNewQuoteGetter(t *testing.T, fn quotegetter.NewQuoteGetterFunc)
TestNewQuoteGetter checks the NewQuoteGetterFunc of a scraper
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.