MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/contrib/ffmpeg/default/ffmpeg_lib_test.cc:56–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56TEST(FfmpegLibTest, TestUninstalled) {
57 {
58 mutex_lock l(mu);
59 if (should_ffmpeg_be_installed) {
60 return;
61 }
62 LOG(INFO) << "Assuming FFmpeg is uninstalled.";
63 }
64
65 string filename = io::JoinPath(TensorFlowSrcRoot(), kTestMp3Filename);
66 std::vector<float> output_samples;
67 Status status = ReadAudioFile(filename, "mp3", 5000, 1, &output_samples);
68 ASSERT_EQ(status.code(), error::Code::NOT_FOUND);
69}
70
71TEST(FfmpegLibTest, TestInstalled) {
72 {

Callers

nothing calls this directly

Calls 15

ReadAudioFileFunction · 0.85
CreateAudioFileFunction · 0.85
GetTempFilenameFunction · 0.85
WriteStringToFileFunction · 0.85
DefaultFunction · 0.85
ReadFileToStringFunction · 0.85
JoinPathFunction · 0.50
TensorFlowSrcRootFunction · 0.50
sinClass · 0.50
minFunction · 0.50
codeMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected