Open 3D Engine ScriptCanvasTesting Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ScriptCanvasTests::ScriptCanvasTestFixture Class Reference

Inherits testing::Test.

Static Public Attributes

static AZStd::atomic_bool s_asyncOperationActive
 

Protected Member Functions

template<class T >
void RegisterComponentDescriptor ()
 
void SetUp () override
 
void TearDown () override
 
ScriptCanvas::Graph * CreateGraph ()
 
ScriptCanvasEditor::EditorGraph * CreateEditorGraph ()
 
TestNodes::ConfigurableUnitTestNodeCreateConfigurableNode (AZStd::string entityName="ConfigurableNodeEntity")
 
void ReportErrors (ScriptCanvas::Graph *graph, bool expectErrors=false, bool expectIrrecoverableErrors=false)
 
void TestConnectionBetween (ScriptCanvas::Endpoint sourceEndpoint, ScriptCanvas::Endpoint targetEndpoint, bool isValid=true)
 
void TestIsConnectionPossible (ScriptCanvas::Endpoint sourceEndpoint, ScriptCanvas::Endpoint targetEndpoint, bool isValid=true)
 
void TestIsConnectionBetween (const ScriptCanvas::Endpoint &sourceEndpoint, const ScriptCanvas::Endpoint &targetEndpoint, bool isValid=true)
 
void TestAllImplicitConnections (ScriptCanvasEditor::EditorGraph *editorGraph, AZStd::vector< ScriptCanvas::Endpoint > sourceDataSlots, AZStd::vector< ScriptCanvas::Endpoint > targetDataSlots, ScriptCanvas::Endpoint sourceExecSlot, ScriptCanvas::Endpoint targetExecSlot, AZStd::vector< ScriptCanvas::Endpoint > allExecutionOutSlots)
 
void CreateExecutionFlowBetween (AZStd::vector< TestNodes::ConfigurableUnitTestNode * > unitTestNodes)
 
AZStd::vector< ScriptCanvas::Data::Type > GetContainerDataTypes () const
 
ScriptCanvas::Data::Type GetRandomContainerType () const
 
AZStd::vector< ScriptCanvas::Data::Type > GetPrimitiveTypes () const
 
ScriptCanvas::Data::Type GetRandomPrimitiveType () const
 
AZStd::vector< ScriptCanvas::Data::Type > GetBehaviorObjectTypes () const
 
ScriptCanvas::Data::Type GetRandomObjectType () const
 
AZStd::vector< ScriptCanvas::Data::Type > GetTypes () const
 
ScriptCanvas::Data::Type GetRandomType () const
 
AZStd::string GenerateSlotName ()
 

Static Protected Member Functions

static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static ScriptCanvasTests::ApplicationGetApplication ()
 

Protected Attributes

AZ::SerializeContext * m_serializeContext
 
AZ::BehaviorContext * m_behaviorContext
 
UnitTestEntityContext m_entityContext
 
ScriptCanvas::Data::Type m_numericVectorType
 
ScriptCanvas::Data::Type m_stringToNumberMapType
 
ScriptCanvas::Data::Type m_dataSlotConfigurationType
 
ScriptCanvas::Data::Type m_baseClassType
 
ScriptCanvas::Data::Type m_subClassType
 
ScriptCanvas::Graph * m_graph = nullptr
 
int m_slotCounter = 0
 

Static Protected Attributes

static ScriptCanvasTests::Applications_application
 

The documentation for this class was generated from the following file: