animelayer_test

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateInitialItemExams

func GenerateInitialItemExams(testFileHtml, testFileExam string, ctx context.Context, params TestGetItemParams) error

func GenerateInitialPageExams

func GenerateInitialPageExams(testFileHtml, testFileExam string, ctx context.Context, params TestParseFirstPageParams) error

Types

type ClientHtmlGetFromFile

type ClientHtmlGetFromFile struct {
	File string
}

func (*ClientHtmlGetFromFile) Get

func (f *ClientHtmlGetFromFile) Get(url string) (*html.Node, error)

type ClientHtmlSaveToFile

type ClientHtmlSaveToFile struct {
	File   string
	Client animelayer.DocGetter
}

func (*ClientHtmlSaveToFile) Get

func (f *ClientHtmlSaveToFile) Get(url string) (*html.Node, error)

type TestGetItemParams

type TestGetItemParams struct {
	Identifier string

	NoteElem  string
	NoteClass string
}

type TestParseFirstPageParams

type TestParseFirstPageParams struct {
	Category      animelayer.Category
	Page          int
	ExpectedError error

	NoteElem  string
	NoteClass string
}

Jump to

Keyboard shortcuts

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