Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Relationship.cpp File Reference
#include <gtest/gtest.h>
#include "component/Relationship.hpp"
#include "core/Core.hpp"
#include "utils/Utils.hpp"

Classes

struct  TestComponent

Functions

 TEST (Relationship, initialization)
 TEST (Relationship, one_child)
 TEST (Relationship, multiple_children)
 TEST (Relationship, remove_parent)
 TEST (Relationship, get_parent_of_child_without_relationship_component)
 TEST (Relationship, for_each_child)
 TEST (Relationship, try_get_child_components)
 TEST (Relationship, try_get_parent_component)
 TEST (Relationship, try_get_parent_component_no_parent)
 TEST (Relationship, try_get_parent_component_parent_has_no_component)
 TEST (Relationship, try_get_child_components_no_children)
 TEST (Relationship, try_get_child_components_children_have_no_component)

Function Documentation

◆ TEST() [1/12]

TEST ( Relationship ,
for_each_child  )

◆ TEST() [2/12]

TEST ( Relationship ,
get_parent_of_child_without_relationship_component  )

◆ TEST() [3/12]

TEST ( Relationship ,
initialization  )

◆ TEST() [4/12]

TEST ( Relationship ,
multiple_children  )

◆ TEST() [5/12]

TEST ( Relationship ,
one_child  )

◆ TEST() [6/12]

TEST ( Relationship ,
remove_parent  )

◆ TEST() [7/12]

TEST ( Relationship ,
try_get_child_components  )

◆ TEST() [8/12]

TEST ( Relationship ,
try_get_child_components_children_have_no_component  )

◆ TEST() [9/12]

TEST ( Relationship ,
try_get_child_components_no_children  )

◆ TEST() [10/12]

TEST ( Relationship ,
try_get_parent_component  )

◆ TEST() [11/12]

TEST ( Relationship ,
try_get_parent_component_no_parent  )

◆ TEST() [12/12]

TEST ( Relationship ,
try_get_parent_component_parent_has_no_component  )