shared_tests

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 22 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 added in v0.7.0

func Import()

Types

type FakeReadSeeker added in v0.9.0

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

func (*FakeReadSeeker) AddSegmentCallback added in v0.9.0

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

func (*FakeReadSeeker) IsDataAvailableCallback added in v0.9.0

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

func (*FakeReadSeeker) Read added in v0.9.0

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

func (*FakeReadSeeker) Seek added in v0.9.0

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