MCPcopy Create free account
hub / github.com/bbc/audiowaveform / TEST_F

Function TEST_F

test/GdImageRendererTest.cpp:117–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115//------------------------------------------------------------------------------
116
117TEST_F(GdImageRendererTest, shouldRenderImageWithAxisLabels)
118{
119 std::string expected_output(
120 "Input file: ../test/data/test_file_stereo_8bit_64spp_wav.dat\n"
121 "Channels: 1\n"
122 "Sample rate: 16000 Hz\n"
123 "Bits: 8\n"
124 "Samples per pixel: 64\n"
125 "Length: 1774 points\n"
126 "Image dimensions: 1000x300 pixels\n"
127 "Channels: 1\n"
128 "Sample rate: 16000 Hz\n"
129 "Samples per pixel: 64\n"
130 "Start time: 5 seconds\n"
131 "Start index: 1250\n"
132 "Buffer size: 1774\n"
133 "Axis labels: yes\n"
134 "Waveform style: normal\n"
135 "Amplitude scale: 1\n"
136 "Output file: "
137 );
138
139 testImageRendering(true, false, false, expected_output);
140}
141
142//------------------------------------------------------------------------------
143

Callers

nothing calls this directly

Calls 4

setSampleRateMethod · 0.80
setSamplesPerPixelMethod · 0.80
appendSamplesMethod · 0.80
createMethod · 0.80

Tested by

no test coverage detected