JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce_UnitTest.h File Reference
This graph shows which files directly or indirectly include this file:

Classes

class  juce::UnitTest
 This is a base class for classes that perform a unit test. More...
 
class  juce::UnitTestRunner
 Runs a set of unit tests. More...
 
struct  juce::UnitTestRunner::TestResult
 Contains the results of a test. More...
 

Namespaces

 juce
 

Macros

#define expectDoesNotThrow(expr)
 Checks that the result of an expression does not throw an exception. More...
 
#define expectThrows(expr)
 Checks that the result of an expression throws an exception. More...
 
#define expectThrowsType(expr, type)
 Checks that the result of an expression throws an exception of a certain type. More...
 

Macro Definition Documentation

◆ expectDoesNotThrow

#define expectDoesNotThrow (   expr)
Value:
try \
{ \
(expr); \
expect (true); \
} \
catch (...) \
{ \
expect (false, "Expected: does not throw an exception, Actual: throws."); \
}

Checks that the result of an expression does not throw an exception.

◆ expectThrows

#define expectThrows (   expr)
Value:
try \
{ \
(expr); \
expect (false, "Expected: throws an exception, Actual: does not throw."); \
} \
catch (...) \
{ \
expect (true); \
}

Checks that the result of an expression throws an exception.

◆ expectThrowsType

#define expectThrowsType (   expr,
  type 
)
Value:
try \
{ \
(expr); \
expect (false, "Expected: throws an exception of type " #type ", Actual: does not throw."); \
} \
catch (type&) \
{ \
expect (true); \
} \
catch (...) \
{ \
expect (false, "Expected: throws an exception of type " #type ", Actual: throws another type."); \
}

Checks that the result of an expression throws an exception of a certain type.

juce::gl::type
GLint GLint GLsizei GLint GLenum GLenum type
Definition: juce_gl.h:650