spider

package
v0.0.0-...-f10d331 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package spider is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSpider

type MockSpider struct {
	// contains filtered or unexported fields
}

MockSpider is a mock of Spider interface

func NewMockSpider

func NewMockSpider(ctrl *gomock.Controller) *MockSpider

NewMockSpider creates a new mock instance

func (*MockSpider) EXPECT

func (m *MockSpider) EXPECT() *MockSpiderMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSpider) GetBody

func (m *MockSpider) GetBody() string

GetBody mocks base method

type MockSpiderMockRecorder

type MockSpiderMockRecorder struct {
	// contains filtered or unexported fields
}

MockSpiderMockRecorder is the mock recorder for MockSpider

func (*MockSpiderMockRecorder) GetBody

func (mr *MockSpiderMockRecorder) GetBody() *gomock.Call

GetBody indicates an expected call of GetBody

type Spider

type Spider interface {
	GetBody() string
}

func CreateGoVersionSpider

func CreateGoVersionSpider() Spider

还没有完成就要测试,这时候可以用mock

Jump to

Keyboard shortcuts

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