MCPcopy Create free account
hub / github.com/evilsocket/cake / test_encode_wav_valid_riff

Function test_encode_wav_valid_riff

cake-core/src/utils/wav.rs:176–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174
175 #[test]
176 fn test_encode_wav_valid_riff() {
177 let wav = encode_wav_bytes(&[0.0; 100], 24000);
178 assert_eq!(&wav[0..4], b"RIFF");
179 assert_eq!(&wav[8..12], b"WAVE");
180 assert_eq!(&wav[12..16], b"fmt ");
181 assert_eq!(&wav[36..40], b"data");
182 }
183
184 #[test]
185 fn test_encode_wav_correct_sizes() {

Callers

nothing calls this directly

Calls 1

encode_wav_bytesFunction · 0.70

Tested by

no test coverage detected