MCPcopy Create free account
hub / github.com/audacity/audacity / TimeCase

Function TimeCase

libraries/lib-snapping/tests/SnappingTest.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "MockedPrefs.h"
21
22void TimeCase(const AudacityProject& project, const char* format, double time, double expected, bool nearest)
23{
24 REQUIRE(SnapFunctionsRegistry::Snap(format, project, time, nearest).snapped);
25 REQUIRE(
26 SnapFunctionsRegistry::Snap(format, project, time, nearest).time ==
27 Approx(expected));
28}
29
30void BeatsCase(
31 AudacityProject& project, const char* format, double time, double expected,

Callers 1

SnappingTest.cppFile · 0.85

Calls 1

SnapClass · 0.85

Tested by

no test coverage detected