PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
test_exceptions.cpp File Reference

Unit tests for profinet::ProfinetError exception hierarchy and PNIOError parsing. More...

#include <gtest/gtest.h>
#include <string>
#include <type_traits>
#include <array>
#include "profinet/exceptions.h"
+ Include dependency graph for test_exceptions.cpp:

Go to the source code of this file.

Classes

class  profinet::PNIOErrorDirectTests
 

Namespaces

namespace  profinet
 

Functions

 profinet::TEST (ExceptionHierarchyTests, DcpErrorInheritsProfinetError)
 
 profinet::TEST (ExceptionHierarchyTests, DcpTimeoutInheritsDcpError)
 
 profinet::TEST (ExceptionHierarchyTests, DcpDeviceNotFoundInheritsDcpError)
 
 profinet::TEST (ExceptionHierarchyTests, RpcErrorInheritsProfinetError)
 
 profinet::TEST (ExceptionHierarchyTests, RpcTimeoutInheritsRpcError)
 
 profinet::TEST (ExceptionHierarchyTests, RpcFaultInheritsRpcError)
 
 profinet::TEST (ExceptionHierarchyTests, RpcConnectionInheritsRpcError)
 
 profinet::TEST (ExceptionHierarchyTests, ValidationErrorInheritsProfinetError)
 
 profinet::TEST (ExceptionHierarchyTests, InvalidMacInheritsValidationError)
 
 profinet::TEST (ExceptionHierarchyTests, InvalidIpInheritsValidationError)
 
 profinet::TEST (ExceptionHierarchyTests, SocketErrorInheritsProfinetError)
 
 profinet::TEST (ExceptionHierarchyTests, PermissionDeniedInheritsSocketError)
 
 profinet::TEST (RPCFaultErrorTests, FaultCodeDefault)
 
 profinet::TEST (RPCFaultErrorTests, FaultCodeCustom)
 
 profinet::TEST (RPCFaultErrorTests, Message)
 
 profinet::TEST (ExceptionCatchingTests, CatchAllProfinetErrors)
 
 profinet::TEST (ExceptionCatchingTests, CatchDcpVariants)
 
 profinet::TEST (ExceptionCatchingTests, CatchRpcVariants)
 
 profinet::TEST (PNIOErrorTests, PnioErrorInheritsRpcError)
 
 profinet::TEST (PNIOErrorTests, DefaultValues)
 
 profinet::TEST (PNIOErrorTests, CustomValues)
 
 profinet::TEST (PNIOErrorTests, FromArgsStatusInvalidSlot)
 
 profinet::TEST (PNIOErrorTests, FromArgsStatusInvalidSubslot)
 
 profinet::TEST (PNIOErrorTests, FromArgsStatusInvalidIndex)
 
 profinet::TEST (PNIOErrorTests, FromArgsStatusInvalidApi)
 
 profinet::TEST (PNIOErrorTests, FromArgsStatusRmpmError)
 
 profinet::TEST (PNIOErrorTests, FromArgsStatusUnknownError)
 
 profinet::TEST (PNIOErrorTests, StrFormat)
 
 profinet::TEST (PNIOErrorTests, ErrorConstants)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioCmAr)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioCmArResponse)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioCmIocr)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioCmIocrResponse)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioCmAlarmCr)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioCmAlarmCrResponse)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioCmExpectedSubmodule)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioCmDevice)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioCmFaultyBlock)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioCmUnknownErrorCode1)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioRmpm)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioPrmServer)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioUnknownErrorCode1)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioRwInvalidIndex)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioRwWriteLength)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioRwResource)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioRwAccess)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioRwApplication)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesPnioRwUnknownErrorCode1)
 
 profinet::TEST (PNIOErrorTests, CreateFromCodesUnknownErrorDecode)
 
 profinet::TEST (PNIOErrorTests, FromBytesPreservesAllRawErrorBytes)
 
 profinet::TEST (PNIOErrorTests, FromBytesUsesExpectedByteOrder)
 
 profinet::TEST (PNIOErrorTests, FromArgsStatusReversesByteOrder)
 
 profinet::TEST (PNIOErrorTests, FromArgsStatusDecodesPnioCmError)
 
 profinet::TEST (PNIOErrorTests, IsCmErrorReturnsTrueForPnioCm)
 
 profinet::TEST (PNIOErrorTests, IsCmErrorReturnsFalseForPnioRw)
 
 profinet::TEST (PNIOErrorTests, IsCmErrorReturnsFalseForPnio)
 
 profinet::TEST (PNIOErrorTests, IsCmErrorReturnsFalseForUnknownDecode)
 
 profinet::TEST (PNIOErrorTests, BlockNameReturnsArBlock)
 
 profinet::TEST (PNIOErrorTests, BlockNameReturnsIocrBlock)
 
 profinet::TEST (PNIOErrorTests, BlockNameReturnsArResponseBlock)
 
 profinet::TEST (PNIOErrorTests, BlockNameReturnsUnknownForUnknownCmErrorCode1)
 
 profinet::TEST (PNIOErrorTests, BlockNameReturnsEmptyForPnioRwError)
 
 profinet::TEST (PNIOErrorTests, BlockNameReturnsEmptyForPnioError)
 
 profinet::TEST (PNIOErrorTests, BlockNameReturnsEmptyForUnknownDecode)
 
 profinet::TEST (PNIOErrorTests, DirectConstructionPreservesMessageAndCodes)
 
 profinet::TEST (PNIOErrorTests, DirectConstructionIsCmError)
 
 profinet::TEST (PNIOErrorTests, DirectConstructionIsNotCmError)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmAr)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmArResponse)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmIocr)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmIocrResponse)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmAlarmCr)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmAlarmCrResponse)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmExpectedSubmodule)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmDevice)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmFaultyBlock)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmUnknownErrorCode1)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRmpm)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioPrmServer)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioUnknownErrorCode1)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwInvalidIndex)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwWriteLength)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwResource)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwAccess)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwApplication)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwUnknownErrorCode1)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmPreservesRawCodes)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwPreservesRawCodes)
 
 profinet::TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioPreservesRawCodes)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorAr)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorArResponse)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorArActive)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorArActiveResponse)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorNoArResources)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorNoProviderResources)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorNoConsumerResources)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorNoAlarmResources)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorNoMemory)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorInvalidSessionKey)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorArUuidConflict)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorUnknownCode2)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorIocr)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorIocrResponse)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorAlarmCr)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorAlarmCrResponse)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorExpectedSubmodule)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorDevice)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorFaultyBlock)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorUnknownCode1)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioErrorRmpm)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioErrorPrmServer)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioErrorUnknownCode1)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorInvalidIndex)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorWriteLength)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorResource)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorAccess)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorApplication)
 
 profinet::TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorUnknownCode1)
 

Detailed Description

Unit tests for profinet::ProfinetError exception hierarchy and PNIOError parsing.

Definition in file test_exceptions.cpp.