shared_tests

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Locker = &sync.Mutex{} // A locker, sometimes we need to make sure things can't run concurrently.
View Source
var PdfiumInstance pdfium.Pdfium
View Source
var PdfiumPool pdfium.Pool
View Source
var TestDataPath string
View Source
var TestType string

Functions

func Import

func Import()

Types

type FakeReadSeeker

type FakeReadSeeker struct {
	FileData       []byte
	OriginalReader *os.File
	Size           int64
	CurrentPos     int64
	LoadedBytes    []bool
}

func (*FakeReadSeeker) AddSegmentCallback

func (f *FakeReadSeeker) AddSegmentCallback(offset, size uint64)

func (*FakeReadSeeker) IsDataAvailableCallback

func (f *FakeReadSeeker) IsDataAvailableCallback(offset, size uint64) bool

func (*FakeReadSeeker) Read

func (f *FakeReadSeeker) Read(p []byte) (n int, err error)

func (*FakeReadSeeker) Seek

func (f *FakeReadSeeker) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

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