|
GameApi 28
Library used by GameApi Builder tool
|
#include <chaiscript/chaiscript.hpp>#include <chaiscript/chaiscript_basic.hpp>#include <chaiscript/utility/utility.hpp>#include <chaiscript/dispatchkit/bootstrap_stl.hpp>#include "../static_libs/chaiscript_parser.hpp"#include "../static_libs/chaiscript_stdlib.hpp"#include <clocale>#include "catch.hpp"
Classes | |
| class | Short_Comparison_Test |
| class | Type_Name_MyClass |
| class | Utility_Test |
| class | Object_Copy_Count_Test |
| class | Object_Lifetime_Test |
| struct | Object_Lifetime_Vector2< T > |
| class | Non_Poly_Base |
| class | Non_Poly_Derived |
| struct | TestCppVariableScope |
| struct | Returned_Converted_Config |
| struct | Count_Tracer |
| class | Unique_Ptr_Test_Class |
| class | Unique_Ptr_Test_Base_Class |
| class | Unique_Ptr_Test_Derived_Class |
| struct | A |
| class | B |
| struct | Reference_MyClass |
| struct | MyException |
Macros | |
| #define | CATCH_CONFIG_MAIN |
Enumerations | |
| enum | Utility_Test_Numbers { ONE , TWO , THREE } |
Functions | |
| TEST_CASE ("C++11 Lambdas Can Be Registered") | |
| TEST_CASE ("Dynamic_Object attributes can be shared with C++") | |
| TEST_CASE ("Function objects can be created from chaiscript functions") | |
| TEST_CASE ("ChaiScript can be created and destroyed on heap") | |
| void | arithmetic_conversions_f1 (int) |
| void | arithmetic_conversions_f4 (std::string) |
| void | arithmetic_conversions_f2 (int) |
| void | arithmetic_conversions_f3 (double) |
| void | arithmetic_conversions_f_func_return (const std::function< unsigned int(unsigned long)> &f) |
| TEST_CASE ("Test automatic arithmetic conversions") | |
| TEST_CASE ("Generic exception handling with C++") | |
| TEST_CASE ("Throw an int") | |
| TEST_CASE ("Throw int or double") | |
| TEST_CASE ("Throw a runtime_error") | |
| TEST_CASE ("Throw unhandled type") | |
| int | expected_eval_errors_test_one (const int &) |
| TEST_CASE ("No unexpected exceptions leak") | |
| int | function_ordering_test_one (const int &) |
| int | function_ordering_test_two (int &) |
| TEST_CASE ("Function ordering") | |
| int | functor_cast_test_call (const std::function< int(int)> &f, int val) |
| TEST_CASE ("Functor cast") | |
| TEST_CASE ("Non-ASCII characters in the middle of string") | |
| TEST_CASE ("Non-ASCII characters in the beginning of string") | |
| TEST_CASE ("Non-ASCII characters in the end of string") | |
| TEST_CASE ("BOM in string") | |
| int | set_state_test_myfun () |
| TEST_CASE ("Set and restore chai state") | |
| TEST_CASE ("Short comparison with int") | |
| TEST_CASE ("Test lookup of type names") | |
| int | simultaneous_chaiscript_do_something (int i) |
| int | simultaneous_chaiscript_do_something_else (int i) |
| TEST_CASE ("Simultaneous ChaiScript tests") | |
| TEST_CASE ("Utility_Test utility class wrapper") | |
| void | do_something_with_enum_vector (const std::vector< Utility_Test_Numbers > &v) |
| TEST_CASE ("Utility_Test utility class wrapper for enum") | |
| Object_Copy_Count_Test | object_copy_count_create () |
| TEST_CASE ("Object copy counts") | |
| TEST_CASE ("Object lifetime tests") | |
| Object_Lifetime_Vector2< float > | Object_Lifetime_Vector2_GetValue () |
| TEST_CASE ("Object lifetime test 2") | |
| int | myfunction (Non_Poly_Base *) |
| TEST_CASE ("Test Derived->Base with non-polymorphic classes") | |
| TEST_CASE ("Variable Scope When Calling From C++") | |
| TEST_CASE ("Variable Scope When Calling From C++ 2") | |
| void | ulonglong (unsigned long long i) |
| void | longlong (long long i) |
| TEST_CASE ("Test long long dispatch") | |
| TEST_CASE ("Return of converted type from script") | |
| int | get_value_a (const std::map< std::string, int > &t_m) |
| TEST_CASE ("Map conversions") | |
| TEST_CASE ("Parse floats with non-posix locale") | |
| bool | FindBitmap (int &ox, int &oy, long) |
| TEST_CASE ("Mismatched numeric types only convert necessary params") | |
| TEST_CASE ("type_conversion to bool") | |
| TEST_CASE ("Make sure ChaiScript object still compiles / executes") | |
| TEST_CASE ("Test count tracer") | |
| TEST_CASE ("Test stdlib options") | |
| void | uservalueref (int &&) |
| void | usemoveonlytype (std::unique_ptr< int > &&) |
| TEST_CASE ("Pass r-value reference to func") | |
| TEST_CASE ("Use unique_ptr") | |
| std::unique_ptr< Unique_Ptr_Test_Class > | make_Unique_Ptr_Test_Class () |
| TEST_CASE ("Call methods through unique_ptr") | |
| std::unique_ptr< Unique_Ptr_Test_Derived_Class > | make_Unique_Ptr_Test_Derived_Class () |
| TEST_CASE ("Call methods on base class through unique_ptr<derived>") | |
| TEST_CASE ("Test typed chaiscript functions to perform conversions") | |
| TEST_CASE ("Test reference member being registered") | |
| TEST_CASE ("Test unicode matches C++") | |
| const int | add_3 (const int &i) |
| TEST_CASE ("Test returning by const non-reference") | |
| void | throws_a_thing () |
| TEST_CASE ("Test throwing and catching custom exception") | |
| TEST_CASE ("Test ability to get 'use' function from default construction") | |
| #define CATCH_CONFIG_MAIN |
| enum Utility_Test_Numbers |
| const int add_3 | ( | const int & | i | ) |
| void arithmetic_conversions_f1 | ( | int | ) |

| void arithmetic_conversions_f2 | ( | int | ) |

| void arithmetic_conversions_f3 | ( | double | ) |

| void arithmetic_conversions_f4 | ( | std::string | ) |

| void arithmetic_conversions_f_func_return | ( | const std::function< unsigned int(unsigned long)> & | f | ) |

| void do_something_with_enum_vector | ( | const std::vector< Utility_Test_Numbers > & | v | ) |

| int expected_eval_errors_test_one | ( | const int & | ) |

| bool FindBitmap | ( | int & | ox, |
| int & | oy, | ||
| long | ) |

| int function_ordering_test_one | ( | const int & | ) |

| int function_ordering_test_two | ( | int & | ) |

| int functor_cast_test_call | ( | const std::function< int(int)> & | f, |
| int | val ) |

| int get_value_a | ( | const std::map< std::string, int > & | t_m | ) |

| void longlong | ( | long long | i | ) |
| std::unique_ptr< Unique_Ptr_Test_Class > make_Unique_Ptr_Test_Class | ( | ) |
| std::unique_ptr< Unique_Ptr_Test_Derived_Class > make_Unique_Ptr_Test_Derived_Class | ( | ) |
| int myfunction | ( | Non_Poly_Base * | ) |

| Object_Copy_Count_Test object_copy_count_create | ( | ) |

| Object_Lifetime_Vector2< float > Object_Lifetime_Vector2_GetValue | ( | ) |

| int set_state_test_myfun | ( | ) |

| int simultaneous_chaiscript_do_something | ( | int | i | ) |

| int simultaneous_chaiscript_do_something_else | ( | int | i | ) |

| TEST_CASE | ( | "BOM in string" | ) |
| TEST_CASE | ( | "C++11 Lambdas Can Be Registered" | ) |
| TEST_CASE | ( | "Call methods on base class through unique_ptr<derived>" | ) |
| TEST_CASE | ( | "Call methods through unique_ptr" | ) |
| TEST_CASE | ( | "ChaiScript can be created and destroyed on heap" | ) |
| TEST_CASE | ( | "Dynamic_Object attributes can be shared with C++" | ) |
| TEST_CASE | ( | "Function objects can be created from chaiscript functions" | ) |
| TEST_CASE | ( | "Function ordering" | ) |
| TEST_CASE | ( | "Functor cast" | ) |
| TEST_CASE | ( | "Generic exception handling with C++" | ) |
| TEST_CASE | ( | "Make sure ChaiScript object still compiles / executes" | ) |
| TEST_CASE | ( | "Map conversions" | ) |
| TEST_CASE | ( | "Mismatched numeric types only convert necessary params" | ) |
| TEST_CASE | ( | "No unexpected exceptions leak" | ) |
| TEST_CASE | ( | "Non-ASCII characters in the beginning of string" | ) |
| TEST_CASE | ( | "Non-ASCII characters in the end of string" | ) |
| TEST_CASE | ( | "Non-ASCII characters in the middle of string" | ) |
| TEST_CASE | ( | "Object copy counts" | ) |
| TEST_CASE | ( | "Object lifetime test 2" | ) |
| TEST_CASE | ( | "Object lifetime tests" | ) |
| TEST_CASE | ( | "Parse floats with non-posix locale" | ) |
| TEST_CASE | ( | "Pass r-value reference to func" | ) |
| TEST_CASE | ( | "Return of converted type from script" | ) |
| TEST_CASE | ( | "Set and restore chai state" | ) |
| TEST_CASE | ( | "Short comparison with int" | ) |
| TEST_CASE | ( | "Simultaneous ChaiScript tests" | ) |
| TEST_CASE | ( | "Test automatic arithmetic conversions" | ) |
| TEST_CASE | ( | "Test count tracer" | ) |
| TEST_CASE | ( | "Test Derived->Base with non-polymorphic classes" | ) |
| TEST_CASE | ( | "Test long long dispatch" | ) |
| TEST_CASE | ( | "Test lookup of type names" | ) |
| TEST_CASE | ( | "Test reference member being registered" | ) |
| TEST_CASE | ( | "Test returning by const non-reference" | ) |
| TEST_CASE | ( | "Test stdlib options" | ) |
| TEST_CASE | ( | "Test throwing and catching custom exception" | ) |
| TEST_CASE | ( | "Test typed chaiscript functions to perform conversions" | ) |
| TEST_CASE | ( | "Test unicode matches C++" | ) |
| TEST_CASE | ( | "Throw a runtime_error" | ) |
| TEST_CASE | ( | "Throw an int" | ) |
| TEST_CASE | ( | "Throw int or double" | ) |
| TEST_CASE | ( | "Throw unhandled type" | ) |
| TEST_CASE | ( | "type_conversion to bool" | ) |
| TEST_CASE | ( | "Use unique_ptr" | ) |
| TEST_CASE | ( | "Utility_Test utility class wrapper for enum" | ) |
| TEST_CASE | ( | "Utility_Test utility class wrapper" | ) |
| TEST_CASE | ( | "Variable Scope When Calling From C++ 2" | ) |
| TEST_CASE | ( | "Variable Scope When Calling From C++" | ) |
| void throws_a_thing | ( | ) |
| void ulonglong | ( | unsigned long long | i | ) |
| void usemoveonlytype | ( | std::unique_ptr< int > && | ) |
| void uservalueref | ( | int && | ) |