Anders Aaen Springborg 4e48dae8e4
New generator | Arduino cpp (#9489)
* initil tiny client generator

* Helper string

* WIP: added helper file with json helper functions

* WIP: model implementation.. Working on JSON

* Added codegen files for model and helper

* WIP: toJson()

* Added mapping configurations

* Upadet string compare

* Removed redundant namespaces

* Added files for example

* fixed syntax errors

* fixed syntax errors

* header generation

* unittest example for pet class

* Refactored mustache & fixed logical errors

* WIP: unit test mustache format

* Removed legacy file

* mustache service

* Declare service in Java file

* Removed legacy file

* removed legacy code

* Documentation

* Added folder structure + new supporting files

* Added file to run all unittests

* Refactored unit tests

* typemappings and new paths

* First service impl

* Added esp32 and esp8266 env

* Added default values

* Added cli option to specify controller

* added type decl method

* Added stringify methods

* service get requests

* Fix helper header

* post merge fix

* fix long test

* Tiny namespace

* remove shared pointer

* include petapi

* stringify

* return problems

* Canged logic for response-body handling

* Implemented last logic for reponse handeling

* Implemented constructor logic

* first tiny sample

* update basepath to petstore v3

* standard main example

* root certificate example

* root folder

* TODO cleanup

* exclude features

* supports delete again!👷

* remove todo 

* new main example ❣️

* new main example ❣️

* Make our feature set realistic

* fix indentation

* HTTP / HTTPS Connection

* Root certificate sample

* https vs http 👨🏻‍🔬

* fix lint in template

* default value for controller in config

* new readme 📜

* remove old comments

* removed unused testfile

* no default root certificate

* new main

* remove test

* Update platformio.ini.mustache

🤷‍♂️

* Update platformio.ini.mustache

remove native

* added support info

* Add namespace to Pet 🐅

* bourne compatibility fix

* spelling error in python file

* bourne python script 🐍

* Version bump

* Add bourne script to readme

* update main sample, from template

* pre_compiling_bourne.py.mustache to samples folder 📃

* set header Content'type to json

* map todo🗺️

* remove unused debug flag⚒️

* added support for ESP8266 ༼ つ ◕_◕ ༽つ

* added new sample for ESP32 📀

* 🎯

* removed use of namespace std 

* removed use of "__" in variables

* removed unused code in destructor

* fixed type comparison

* move default ctor to header

* added zero initialized primitive variables

* moved variable to TypeMappings

* updated ifndefines

* Extra comment for build error in standard example 🦸🏽‍

* afer cpp-ish cast from std::string to uint8* cast🏰

* excluded maps type

* Documentation og generator

Co-authored-by: kaareHH <kaare.hattel@gmail.com>
Co-authored-by: mkakbas <45030188+mkakbas@users.noreply.github.com>
Co-authored-by: mkakbas <martinkandersen1@gmail.com>
2021-05-24 11:11:44 +08:00

205 lines
3.5 KiB
C++

#include "ApiResponseTest.cpp"
#include "CategoryTest.cpp"
#include "OrderTest.cpp"
#include "PetTest.cpp"
#include "TagTest.cpp"
#include "UserTest.cpp"
void setUp(){}
void tearDown(){}
void runTests(){
RUN_TEST(test_ApiResponse_code_is_assigned_from_json);
RUN_TEST(test_ApiResponse_type_is_assigned_from_json);
RUN_TEST(test_ApiResponse_message_is_assigned_from_json);
RUN_TEST(test_Category_id_is_assigned_from_json);
RUN_TEST(test_Category_name_is_assigned_from_json);
RUN_TEST(test_Order_id_is_assigned_from_json);
RUN_TEST(test_Order_petId_is_assigned_from_json);
RUN_TEST(test_Order_quantity_is_assigned_from_json);
RUN_TEST(test_Order_shipDate_is_assigned_from_json);
RUN_TEST(test_Order_status_is_assigned_from_json);
RUN_TEST(test_Order_complete_is_assigned_from_json);
RUN_TEST(test_Pet_id_is_assigned_from_json);
RUN_TEST(test_Pet_name_is_assigned_from_json);
RUN_TEST(test_Pet_status_is_assigned_from_json);
RUN_TEST(test_Tag_id_is_assigned_from_json);
RUN_TEST(test_Tag_name_is_assigned_from_json);
RUN_TEST(test_User_id_is_assigned_from_json);
RUN_TEST(test_User_username_is_assigned_from_json);
RUN_TEST(test_User_firstName_is_assigned_from_json);
RUN_TEST(test_User_lastName_is_assigned_from_json);
RUN_TEST(test_User_email_is_assigned_from_json);
RUN_TEST(test_User_password_is_assigned_from_json);
RUN_TEST(test_User_phone_is_assigned_from_json);
RUN_TEST(test_User_userStatus_is_assigned_from_json);
RUN_TEST(test_ApiResponse_code_is_converted_to_json);
RUN_TEST(test_ApiResponse_type_is_converted_to_json);
RUN_TEST(test_ApiResponse_message_is_converted_to_json);
RUN_TEST(test_Category_id_is_converted_to_json);
RUN_TEST(test_Category_name_is_converted_to_json);
RUN_TEST(test_Order_id_is_converted_to_json);
RUN_TEST(test_Order_petId_is_converted_to_json);
RUN_TEST(test_Order_quantity_is_converted_to_json);
RUN_TEST(test_Order_shipDate_is_converted_to_json);
RUN_TEST(test_Order_status_is_converted_to_json);
RUN_TEST(test_Order_complete_is_converted_to_json);
RUN_TEST(test_Pet_id_is_converted_to_json);
RUN_TEST(test_Pet_name_is_converted_to_json);
RUN_TEST(test_Pet_status_is_converted_to_json);
RUN_TEST(test_Tag_id_is_converted_to_json);
RUN_TEST(test_Tag_name_is_converted_to_json);
RUN_TEST(test_User_id_is_converted_to_json);
RUN_TEST(test_User_username_is_converted_to_json);
RUN_TEST(test_User_firstName_is_converted_to_json);
RUN_TEST(test_User_lastName_is_converted_to_json);
RUN_TEST(test_User_email_is_converted_to_json);
RUN_TEST(test_User_password_is_converted_to_json);
RUN_TEST(test_User_phone_is_converted_to_json);
RUN_TEST(test_User_userStatus_is_converted_to_json);
}
int main(void) {
UNITY_BEGIN();
runTests();
return UNITY_END();
}
void setup() {
UNITY_BEGIN();
runTests();
UNITY_END();
}
void loop() {
}