testtools

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestDataDir = filepath.Join(filepath.Dir(callerPath), "../testdata")
)

Functions

func Collect

func Collect(s beep.Streamer) [][2]float64

Collect drains Streamer s and returns all the samples it streamed.

func CollectNum

func CollectNum(num int, s beep.Streamer) [][2]float64

CollectNum collects num samples from the streamer in chunks and returns them all.

func RandomDataStreamer

func RandomDataStreamer(numSamples int) (s beep.StreamSeeker, data [][2]float64)

RandomDataStreamer generates numSamples random samples and returns a StreamSeeker to stream them.

func TestFilePath

func TestFilePath(path string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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