Documentation ¶
Index ¶
- Variables
- func AssertStreamerHasCorrectReturnBehaviour(t *testing.T, s beep.Streamer, expectedSamples int)
- func Collect(s beep.Streamer) [][2]float64
- func CollectNum(num int, s beep.Streamer) [][2]float64
- func RandomDataStreamer(numSamples int) (s beep.StreamSeeker, data [][2]float64)
- func TestFilePath(path string) string
- type ErrorStreamer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TestDataDir = filepath.Join(filepath.Dir(callerPath), "../testdata")
)
Functions ¶
func AssertStreamerHasCorrectReturnBehaviour ¶ added in v1.3.0
AssertStreamerHasCorrectReturnBehaviour tests whether the return values returned by the streamer s adhere to the description on the Streamer interface.
func CollectNum ¶
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 ¶
Types ¶
type ErrorStreamer ¶ added in v1.3.0
type ErrorStreamer struct {
Error error
}
func (ErrorStreamer) Err ¶ added in v1.3.0
func (e ErrorStreamer) Err() error
Click to show internal directories.
Click to hide internal directories.