|
| | ADSRTests () |
| void | runTest () override |
| | UnitTest (const String &name, const String &category=String()) |
| virtual | ~UnitTest () |
| const String & | getName () const noexcept |
| const String & | getCategory () const noexcept |
| void | performTest (UnitTestRunner *runner) |
| virtual void | initialise () |
| virtual void | shutdown () |
| void | beginTest (const String &testName) |
| void | expect (bool testResult, const String &failureMessage=String()) |
| template<class ValueType> |
| void | expectEquals (ValueType actual, ValueType expected, String failureMessage=String()) |
| template<class ValueType> |
| void | expectNotEquals (ValueType value, ValueType valueToCompareTo, String failureMessage=String()) |
| template<class ValueType> |
| void | expectGreaterThan (ValueType value, ValueType valueToCompareTo, String failureMessage=String()) |
| template<class ValueType> |
| void | expectLessThan (ValueType value, ValueType valueToCompareTo, String failureMessage=String()) |
| template<class ValueType> |
| void | expectGreaterOrEqual (ValueType value, ValueType valueToCompareTo, String failureMessage=String()) |
| template<class ValueType> |
| void | expectLessOrEqual (ValueType value, ValueType valueToCompareTo, String failureMessage=String()) |
| template<class ValueType> |
| void | expectWithinAbsoluteError (ValueType actual, ValueType expected, ValueType maxAbsoluteError, String failureMessage=String()) |
| void | logMessage (const String &message) |
| Random | getRandom () const |
◆ ADSRTests()
| juce::ADSRTests::ADSRTests |
( |
| ) |
|
|
inline |
◆ advanceADSR()
| void juce::ADSRTests::advanceADSR |
( |
ADSR & | adsr, |
|
|
int | numSamplesToAdvance ) |
|
inlinestatic |
◆ getTestBuffer()
| AudioBuffer< float > juce::ADSRTests::getTestBuffer |
( |
double | sampleRate, |
|
|
float | lengthInSeconds ) |
|
inlinestatic |
◆ isDecreasing()
◆ isIncreasing()
◆ isSustained()
| bool juce::ADSRTests::isSustained |
( |
const AudioBuffer< float > & | b, |
|
|
float | sustainLevel ) |
|
inlinestatic |
◆ runTest()
| void juce::ADSRTests::runTest |
( |
| ) |
|
|
inlineoverridevirtual |
Implement this method in your subclass to actually run your tests.
The content of your implementation should call beginTest() and expect() to perform the tests.
Implements juce::UnitTest.
The documentation for this struct was generated from the following file:
- /home/runner/work/lmms-fork/lmms-fork/plugins/CarlaBase/carla/source/modules/juce_audio_basics/utilities/juce_ADSR_test.cpp