mocks

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrawlerDatabaseMock

type CrawlerDatabaseMock struct {
	mock.Mock
}

func (*CrawlerDatabaseMock) Find

func (c *CrawlerDatabaseMock) Find(ctx context.Context, uri string, depth uint) ([]string, error)

func (*CrawlerDatabaseMock) Insert

func (c *CrawlerDatabaseMock) Insert(ctx context.Context, uri string, depth uint, uris []string) error

type CrawlerUsecaseMock

type CrawlerUsecaseMock struct {
	mock.Mock
}

func (*CrawlerUsecaseMock) Craw

func (c *CrawlerUsecaseMock) Craw(ctx context.Context, uri string, depth uint) ([]string, error)

type PagerUsecaseMock

type PagerUsecaseMock struct {
	mock.Mock
}

func (*PagerUsecaseMock) GetNode

func (p *PagerUsecaseMock) GetNode(uri string) (*html.Node, error)

Jump to

Keyboard shortcuts

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