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

Function TEST_F

test/OptionsTest.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63//------------------------------------------------------------------------------
64
65TEST_F(OptionsTest, shouldReportErrorIfNoOptionsGiven)
66{
67 const char* const argv[] = { "appname" };
68
69 bool result = options_.parseCommandLine(static_cast<int>(ARRAY_LENGTH(argv)), argv);
70 ASSERT_FALSE(result);
71
72 std::string str = error.str();
73 ASSERT_THAT(str, StartsWith("Error: Must specify either input filename or input format"));
74 ASSERT_THAT(str, HasSubstr("appname"));
75 ASSERT_THAT(str, EndsWith("\n"));
76}
77
78//------------------------------------------------------------------------------
79

Callers

nothing calls this directly

Calls 15

parseCommandLineMethod · 0.80
hasInputFormatMethod · 0.80
getInputFormatMethod · 0.80
hasOutputFormatMethod · 0.80
getOutputFormatMethod · 0.80
getStartTimeMethod · 0.80
hasEndTimeMethod · 0.80
getEndTimeMethod · 0.80
hasSamplesPerPixelMethod · 0.80
getImageWidthMethod · 0.80
getImageHeightMethod · 0.80
getRenderAxisLabelsMethod · 0.80

Tested by

no test coverage detected