basicdicttest

package
v0.0.0-...-58581c8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedDictionary

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

CachedDictionary is used for test, to get page and save it in testdata

func New

func New(t *testing.T, cacheDir string, queryHandler func(string) string) *CachedDictionary

func (*CachedDictionary) GetCachedHTML

func (cd *CachedDictionary) GetCachedHTML(t *testing.T, ctx context.Context, query string) []byte

Jump to

Keyboard shortcuts

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