-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from wsjcpp/version-0.0.3
Version 0.0.3
- Loading branch information
Showing
29 changed files
with
1,883 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .SomeClient import * | ||
from .SomeClient import SomeClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Automaticly generated by [email protected] | ||
cmake_minimum_required(VERSION 3.0) | ||
|
||
add_definitions(-DWSJCPP_APP_VERSION="v0.0.2") | ||
add_definitions(-DWSJCPP_APP_VERSION="v0.0.3") | ||
add_definitions(-DWSJCPP_APP_NAME="wsjcpp-jsonrpc20") | ||
|
||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | ||
|
@@ -17,7 +17,7 @@ set (WSJCPP_SOURCES "") | |
find_package(Threads REQUIRED) | ||
list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT}) | ||
|
||
# wsjcpp-core:v0.1.7 | ||
# wsjcpp-core:v0.2.0 | ||
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_core/") | ||
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp") | ||
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.h") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
#!/usr/bin/wsjcpp-safe-scripting | ||
|
||
# log_info rootdir | ||
# log_info script_filename | ||
|
||
make_dir "./unit-tests.wsjcpp" | ||
make_dir "./unit-tests.wsjcpp/src" | ||
|
||
var user_class_name | ||
set_value user_class_name arg1 | ||
normalize_class_name user_class_name | ||
var class_name | ||
set_value class_name "UnitTest" | ||
concat class_name user_class_name | ||
|
||
var base_filename | ||
convert_CamelCase_to_snake_case class_name base_filename | ||
# log_info base_filename | ||
|
||
var filename_cpp | ||
concat filename_cpp "./unit-tests.wsjcpp/src/" base_filename ".cpp" | ||
|
||
var filename_h | ||
concat filename_h "./unit-tests.wsjcpp/src/" base_filename ".h" | ||
|
||
var ifndef_header | ||
set_value ifndef_header base_filename | ||
concat ifndef_header "_H" | ||
|
||
to_upper_case ifndef_header | ||
|
||
var content_header | ||
concat content_header "#ifndef " ifndef_header " | ||
#define " ifndef_header " | ||
|
||
#include <wsjcpp_unit_tests.h> | ||
|
||
class " class_name " : public WsjcppUnitTestBase { | ||
public: | ||
" class_name "(); | ||
virtual bool doBeforeTest() override; | ||
virtual void executeTest() override; | ||
virtual bool doAfterTest() override; | ||
}; | ||
|
||
#endif // " ifndef_header | ||
|
||
|
||
var content_source | ||
concat content_source " | ||
#include \"" base_filename ".h\" | ||
#include <wsjcpp_core.h> | ||
|
||
// --------------------------------------------------------------------- | ||
// " class_name " | ||
|
||
REGISTRY_WSJCPP_UNIT_TEST(" class_name ") | ||
|
||
" class_name "::" class_name "() | ||
: WsjcppUnitTestBase(\"" class_name "\") { | ||
} | ||
|
||
// --------------------------------------------------------------------- | ||
|
||
bool " class_name "::doBeforeTest() { | ||
// nothing | ||
return true; | ||
} | ||
|
||
// --------------------------------------------------------------------- | ||
|
||
void " class_name "::executeTest() { | ||
compare(\"Not implemented\", true, false); | ||
// TODO unit test source code here | ||
} | ||
|
||
// --------------------------------------------------------------------- | ||
|
||
bool " class_name "::doAfterTest() { | ||
// nothing | ||
return true; | ||
} | ||
|
||
" | ||
|
||
var file_source | ||
concat file_source "src/" filename_cpp | ||
|
||
write_file filename_h content_header | ||
write_file filename_cpp content_source | ||
|
||
log_info " | ||
====== | ||
Generated class: | ||
- " class_name " | ||
Generated files: | ||
- " filename_h " | ||
- " filename_cpp " | ||
====== | ||
" | ||
|
||
wsjcpp_yml_unit_test_add user_class_name filename_h | ||
wsjcpp_yml_unit_test_add user_class_name filename_cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.