Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.cpp
/
Microservice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f8baf298
authored
Jun 02, 2020
by
Amir Aharon
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
first compilation and debug Client_Test
parent
f1304e87
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
26 deletions
.vscode/c_cpp_properties.json
.vscode/launch.json
test/Microservice_ClientTest.cpp
.vscode/c_cpp_properties.json
View file @
f8baf298
...
@@ -29,36 +29,33 @@
...
@@ -29,36 +29,33 @@
{
{
"name"
:
"Linux"
,
"name"
:
"Linux"
,
"includePath"
:
[
"includePath"
:
[
"/usr/include/c++/7.
4
.0"
,
"/usr/include/c++/7.
5
.0"
,
"/usr/include/x86_64-linux-gnu/c++/7.
4
.0"
,
"/usr/include/x86_64-linux-gnu/c++/7.
5
.0"
,
"/usr/include/c++/7.
4
.0/backward"
,
"/usr/include/c++/7.
5
.0/backward"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
4
.0/include"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
5
.0/include"
,
"/usr/local/include"
,
"/usr/local/include"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
4
.0/include-fixed"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
5
.0/include-fixed"
,
"/usr/include/x86_64-linux-gnu"
,
"/usr/include/x86_64-linux-gnu"
,
"/usr/include"
,
"/usr/include"
,
"/home/vscode/vcpkg/installed/x64-linux/include"
,
"/home/vscode/vcpkg/installed/x64-linux/include"
,
"${workspaceRoot}/../3party"
,
"${workspaceRoot}/3party"
,
"${workspaceRoot}/src"
,
"${workspaceRoot}/src"
"/usr/include/c++/7.4.0"
,
"/usr/include/x86_64-linux-gnu/c++/7.4.0"
],
],
"compileCommands"
:
"./compile_commands.json"
,
"compileCommands"
:
"./compile_commands.json"
,
"defines"
:
[],
"defines"
:
[],
"intelliSenseMode"
:
"${default}"
,
"intelliSenseMode"
:
"${default}"
,
"browse"
:
{
"browse"
:
{
"path"
:
[
"path"
:
[
"/usr/include/c++/7.
4
.0"
,
"/usr/include/c++/7.
5
.0"
,
"/usr/include/x86_64-linux-gnu/c++/7.
4
.0"
,
"/usr/include/x86_64-linux-gnu/c++/7.
5
.0"
,
"/usr/include/c++/7.
4
.0/backward"
,
"/usr/include/c++/7.
5
.0/backward"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
4
.0/include"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
5
.0/include"
,
"/usr/local/include"
,
"/usr/local/include"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
4
.0/include-fixed"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
5
.0/include-fixed"
,
"/usr/include/x86_64-linux-gnu"
,
"/usr/include/x86_64-linux-gnu"
,
"/usr/include"
,
"/usr/include"
,
"/home/vscode/vcpkg/installed/x64-linux/include"
,
"/home/vscode/vcpkg/installed/x64-linux/include"
,
"${workspaceRoot}/src"
,
"${workspaceRoot}/src"
"/usr/include/c++/7.4.0"
],
],
"limitSymbolsToIncludedHeaders"
:
true
,
"limitSymbolsToIncludedHeaders"
:
true
,
"databaseFilename"
:
""
"databaseFilename"
:
""
...
...
.vscode/launch.json
View file @
f8baf298
...
@@ -51,13 +51,13 @@
...
@@ -51,13 +51,13 @@
"environment"
:
[]
"environment"
:
[]
},
},
{
{
"name"
:
"C++
Client Local (GDB)
"
,
"name"
:
"C++
Test Client
"
,
"type"
:
"cppdbg"
,
"type"
:
"cppdbg"
,
"request"
:
"launch"
,
"request"
:
"launch"
,
//
"preLaunchTask"
:
"start-gdbserver"
,
//
"preLaunchTask"
:
"start-gdbserver"
,
"miDebuggerPath"
:
"/usr/bin/gdb"
,
"miDebuggerPath"
:
"/usr/bin/gdb"
,
"targetArchitecture"
:
"x64"
,
"targetArchitecture"
:
"x64"
,
"program"
:
"${workspaceRoot}/build/bin/test_MicroserviceClient"
,
"program"
:
"${workspaceRoot}/build/b
uild/b
in/test_MicroserviceClient"
,
"args"
:
[],
"args"
:
[],
"stopAtEntry"
:
false
,
"stopAtEntry"
:
false
,
"cwd"
:
"${workspaceRoot}"
,
"cwd"
:
"${workspaceRoot}"
,
...
@@ -67,7 +67,6 @@
...
@@ -67,7 +67,6 @@
"name"
:
"C++ Attach (GDB)"
,
"name"
:
"C++ Attach (GDB)"
,
"type"
:
"cppdbg"
,
"type"
:
"cppdbg"
,
"request"
:
"launch"
,
"request"
:
"launch"
,
"launchOptionType"
:
"Local"
,
"miDebuggerPath"
:
"/usr/bin/gdb"
,
"miDebuggerPath"
:
"/usr/bin/gdb"
,
"targetArchitecture"
:
"x64"
,
"targetArchitecture"
:
"x64"
,
"program"
:
"enter program name, for example ${workspaceRoot}/a.out"
,
"program"
:
"enter program name, for example ${workspaceRoot}/a.out"
,
...
...
test/Microservice_ClientTest.cpp
View file @
f8baf298
...
@@ -291,13 +291,13 @@ void testJsons()
...
@@ -291,13 +291,13 @@ void testJsons()
std
::
string
outStr
;
std
::
string
outStr
;
archiverJsonLohmann
.
build
(
json1
,
outStr
);
archiverJsonLohmann
.
build
(
json1
,
outStr
);
msrapidjson
::
Document
rpj_Doc
;
//
msrapidjson::Document rpj_Doc;
archiverRapidJson
.
parse
(
inStr
,
(
rapidjson
::
Document
)
rpj_Doc
);
//
archiverRapidJson.parse(inStr, (rapidjson::Document)rpj_Doc);
archiverRapidJson
.
build
((
rapidjson
::
Document
)
rpj_Doc
,
outStr
);
//
archiverRapidJson.build((rapidjson::Document)rpj_Doc,outStr);
std
::
cout
<<
" Testing "
<<
ITERATIONS
<<
" with map serialization json took: "
<<
CommonUtils
::
measureFunc
<>
(
testSerializations
)
<<
"msec"
<<
'\n'
;
std
::
cout
<<
" Testing "
<<
ITERATIONS
<<
" with map serialization json took: "
<<
CommonUtils
::
measureFunc
<>
(
testSerializations
)
<<
"msec"
<<
'\n'
;
std
::
cout
<<
" Testing "
<<
ITERATIONS
<<
" with rapid json took: "
<<
CommonUtils
::
measureFunc
<>
(
testRapidJson
)
<<
"msec"
<<
'\n'
;
//
std::cout <<" Testing " << ITERATIONS << " with rapid json took: " << CommonUtils::measureFunc<>(testRapidJson) << "msec" << '\n';
if
(
false
or
not
true
){
if
(
false
or
not
true
){
}
}
...
@@ -604,13 +604,13 @@ void test_evpp(){
...
@@ -604,13 +604,13 @@ void test_evpp(){
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
//auto duration = CommonUtils::measureFunc<>(runEvppRequestsTest);
//auto duration = CommonUtils::measureFunc<>(runEvppRequestsTest);
auto
duration
=
CommonUtils
::
measureFunc
<>
(
runMSClientEvppTest
);
//
auto duration = CommonUtils::measureFunc<>(runMSClientEvppTest);
// auto duration = CommonUtils::measureFunc<>(test_evpp);
// auto duration = CommonUtils::measureFunc<>(test_evpp);
std
::
cout
<<
" Testing "
<<
ITERATIONS
<<
" with map serialization json took: "
<<
duration
<<
"msec"
<<
'\n'
;
//
std::cout <<" Testing " << ITERATIONS << " with map serialization json took: " << duration << "msec" << '\n';
//runRestZmqTest();
//runRestZmqTest();
// testCaches();
// testCaches();
//
testJsons();
testJsons
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment