Documentation ¶
Overview ¶
Package testutils contains some helpers for testing SDR code and other implementations. This can be imported by implementations to ensure that the standard interfaces work as expected.
Index ¶
- func BenchmarkFFT(b *testing.B, planner fft.Planner)
- func CW(buf sdr.SamplesC64, freq rf.Hz, sampleRate int, phase float64)
- func TestFFT(t *testing.T, planner fft.Planner)
- func TestReadWriteSamples(t *testing.T, name string, r sdr.Reader, w sdr.Writer)
- func TestReader(t *testing.T, name string, r sdr.Reader)
- func TestWriter(t *testing.T, name string, w sdr.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchmarkFFT ¶
BenchmarkFFT will run the FFT repeatedly to understand how it performs.
func TestReadWriteSamples ¶
TestReadWriteSamples will test that writing a specific number of samples comes out the Reader on the other end.
func TestReader ¶
TestReader will check that sample mismatches trigger the correct SDR Errors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.