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

Function ParseTestFlags

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

Source from the content-addressed store, hash-verified

41bool should_ffmpeg_be_installed GUARDED_BY(mu) = false;
42
43string ParseTestFlags(int* argc, char** argv) {
44 mutex_lock l(mu);
45 std::vector<Flag> flag_list = {
46 Flag("should_ffmpeg_be_installed", &should_ffmpeg_be_installed,
47 "indicates that ffmpeg should be installed")};
48 string usage = Flags::Usage(argv[0], flag_list);
49 if (!Flags::Parse(argc, argv, flag_list)) {
50 LOG(ERROR) << "\n" << usage;
51 exit(2);
52 }
53 return usage;
54}
55
56TEST(FfmpegLibTest, TestUninstalled) {
57 {

Callers 1

mainFunction · 0.85

Calls 4

UsageFunction · 0.85
ParseFunction · 0.85
exitFunction · 0.85
FlagClass · 0.50

Tested by

no test coverage detected