ArmNN
 21.02
TestNameOnlyLayerVisitor.cpp File Reference
#include "TestNameOnlyLayerVisitor.hpp"
#include <Network.hpp>
#include <boost/test/unit_test.hpp>

Go to the source code of this file.

Macros

#define TEST_CASE_CHECK_LAYER_VISITOR_NAME(name)
 
#define TEST_CASE_CHECK_LAYER_VISITOR_NAME_NULLPTR(name)
 
#define TEST_SUITE_NAME_ONLY_LAYER_VISITOR(name)
 

Functions

 BOOST_AUTO_TEST_CASE (CheckAdditionLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckAdditionLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckDequantizeLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckDequantizeLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckDivisionLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckDivisionLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckFloorLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckFloorLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckMaximumLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckMaximumLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckMergeLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckMergeLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckMinimumLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckMinimumLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckMultiplicationLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckMultiplicationLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckPreluLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckPreluLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckQuantizeLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckQuantizeLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckRankLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckRankLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckSubtractionLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckSubtractionLayerVisitorNameNullptr)
 
 BOOST_AUTO_TEST_CASE (CheckSwitchLayerVisitorName)
 
 BOOST_AUTO_TEST_CASE (CheckSwitchLayerVisitorNameNullptr)
 

Macro Definition Documentation

◆ TEST_CASE_CHECK_LAYER_VISITOR_NAME

#define TEST_CASE_CHECK_LAYER_VISITOR_NAME (   name)
Value:
BOOST_AUTO_TEST_CASE(Check##name##LayerVisitorName) \
{ \
Test##name##LayerVisitor visitor("name##Layer"); \
armnn::NetworkImpl net; \
armnn::IConnectableLayer *const layer = net.Add##name##Layer("name##Layer"); \
layer->Accept(visitor); \
}
BOOST_AUTO_TEST_CASE(CheckAdditionLayerVisitorName)

Definition at line 15 of file TestNameOnlyLayerVisitor.cpp.

◆ TEST_CASE_CHECK_LAYER_VISITOR_NAME_NULLPTR

#define TEST_CASE_CHECK_LAYER_VISITOR_NAME_NULLPTR (   name)
Value:
BOOST_AUTO_TEST_CASE(Check##name##LayerVisitorNameNullptr) \
{ \
Test##name##LayerVisitor visitor; \
armnn::NetworkImpl net; \
armnn::IConnectableLayer *const layer = net.Add##name##Layer(); \
layer->Accept(visitor); \
}
BOOST_AUTO_TEST_CASE(CheckAdditionLayerVisitorName)

Definition at line 24 of file TestNameOnlyLayerVisitor.cpp.

◆ TEST_SUITE_NAME_ONLY_LAYER_VISITOR

#define TEST_SUITE_NAME_ONLY_LAYER_VISITOR (   name)
Value:
TEST_CASE_CHECK_LAYER_VISITOR_NAME_NULLPTR(name)
#define TEST_CASE_CHECK_LAYER_VISITOR_NAME(name)

Definition at line 33 of file TestNameOnlyLayerVisitor.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/26]

BOOST_AUTO_TEST_CASE ( CheckAdditionLayerVisitorName  )

Definition at line 41 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/26]

BOOST_AUTO_TEST_CASE ( CheckAdditionLayerVisitorNameNullptr  )

Definition at line 41 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/26]

BOOST_AUTO_TEST_CASE ( CheckDequantizeLayerVisitorNameNullptr  )

Definition at line 42 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/26]

BOOST_AUTO_TEST_CASE ( CheckDequantizeLayerVisitorName  )

Definition at line 42 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/26]

BOOST_AUTO_TEST_CASE ( CheckDivisionLayerVisitorName  )

Definition at line 43 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/26]

BOOST_AUTO_TEST_CASE ( CheckDivisionLayerVisitorNameNullptr  )

Definition at line 43 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/26]

BOOST_AUTO_TEST_CASE ( CheckFloorLayerVisitorNameNullptr  )

Definition at line 44 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [8/26]

BOOST_AUTO_TEST_CASE ( CheckFloorLayerVisitorName  )

Definition at line 44 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/26]

BOOST_AUTO_TEST_CASE ( CheckMaximumLayerVisitorName  )

Definition at line 45 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [10/26]

BOOST_AUTO_TEST_CASE ( CheckMaximumLayerVisitorNameNullptr  )

Definition at line 45 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [11/26]

BOOST_AUTO_TEST_CASE ( CheckMergeLayerVisitorName  )

Definition at line 46 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [12/26]

BOOST_AUTO_TEST_CASE ( CheckMergeLayerVisitorNameNullptr  )

Definition at line 46 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [13/26]

BOOST_AUTO_TEST_CASE ( CheckMinimumLayerVisitorName  )

Definition at line 47 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [14/26]

BOOST_AUTO_TEST_CASE ( CheckMinimumLayerVisitorNameNullptr  )

Definition at line 47 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [15/26]

BOOST_AUTO_TEST_CASE ( CheckMultiplicationLayerVisitorNameNullptr  )

Definition at line 48 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [16/26]

BOOST_AUTO_TEST_CASE ( CheckMultiplicationLayerVisitorName  )

Definition at line 48 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [17/26]

BOOST_AUTO_TEST_CASE ( CheckPreluLayerVisitorName  )

Definition at line 49 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [18/26]

BOOST_AUTO_TEST_CASE ( CheckPreluLayerVisitorNameNullptr  )

Definition at line 49 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [19/26]

BOOST_AUTO_TEST_CASE ( CheckQuantizeLayerVisitorName  )

Definition at line 50 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [20/26]

BOOST_AUTO_TEST_CASE ( CheckQuantizeLayerVisitorNameNullptr  )

Definition at line 50 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [21/26]

BOOST_AUTO_TEST_CASE ( CheckRankLayerVisitorName  )

Definition at line 51 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [22/26]

BOOST_AUTO_TEST_CASE ( CheckRankLayerVisitorNameNullptr  )

Definition at line 51 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [23/26]

BOOST_AUTO_TEST_CASE ( CheckSubtractionLayerVisitorName  )

Definition at line 52 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [24/26]

BOOST_AUTO_TEST_CASE ( CheckSubtractionLayerVisitorNameNullptr  )

Definition at line 52 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [25/26]

BOOST_AUTO_TEST_CASE ( CheckSwitchLayerVisitorNameNullptr  )

Definition at line 53 of file TestNameOnlyLayerVisitor.cpp.

◆ BOOST_AUTO_TEST_CASE() [26/26]

BOOST_AUTO_TEST_CASE ( CheckSwitchLayerVisitorName  )

Definition at line 53 of file TestNameOnlyLayerVisitor.cpp.