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

Function TEST

test/WaveformGeneratorTest.cpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42//------------------------------------------------------------------------------
43
44TEST(DurationScaleFactorTest, shouldComputeScaleFactorWithoutNumericOverflow)
45{
46 DurationScaleFactor scale_factor(0.0, 21600.0, 1000);
47
48 ASSERT_THAT(scale_factor.getSamplesPerPixel(192000), Eq(4147200));
49}
50
51//------------------------------------------------------------------------------
52

Callers

nothing calls this directly

Calls 3

DurationScaleFactorClass · 0.85
getSamplesPerPixelMethod · 0.45

Tested by

no test coverage detected