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

Function TEST

test/FileFormatTest.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34//------------------------------------------------------------------------------
35
36TEST(FileFormatTest, shouldConvertFromString)
37{
38 ASSERT_THAT(FileFormat::fromString("wav"), Eq(FileFormat::Wav));
39 ASSERT_THAT(FileFormat::fromString("WAV"), Eq(FileFormat::Wav));
40 ASSERT_THAT(FileFormat::fromString("xyz"), Eq(FileFormat::Unknown));
41}
42
43//------------------------------------------------------------------------------
44

Callers

nothing calls this directly

Calls 3

fromStringFunction · 0.85
toStringFunction · 0.85
getFileExtFunction · 0.85

Tested by

no test coverage detected