hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
main.cpp File Reference
#include <gtest/gtest.h>
#include <sstream>
#include "JsonMessageCover.hpp"
Include dependency graph for main.cpp:

Go to the source code of this file.

Namespaces

namespace  HCE
 < HCE::ServerApplication provides global variable 'HCE::database::Session' which initializes in function 'HCE::ServerApplication::initializeDataBaseSession()'

Functions

 TEST (JsonMessageCover, serializeJsonMessageCover)
 TEST (JsonMessageCover, unserializeJsonMessageCover)
 TEST (JsonMessageCover, useOutputStream)
 TEST (JsonMessageCover, useInputStream)
 TEST (JsonMessageCover, errorMessageJsonMessageCover)
int main (int argc, char **argv)

Variables

const std::string data = "Hello world!"
HCE::types::MessageType type = HCE::types::MessageType::mtSphinx
unsigned int ttl = 234
const std::string validDecodeJson = "{\"data\":\"Hello world!\",\"ttl\":234,\"type\":1}"
const std::string validEncodeJson = "{\"data\":\"SGVsbG8gd29ybGQh\",\"ttl\":234,\"type\":1}"
const std::string invalidDecodeJson = "{\"data\":\"Hello world!\",\"ttl\":234,\"typ"
const std::string invalidEncodeJson = "{\"data\":\"SGVsbG8gd29ybGQh\",\"ttl\":234,\"typ"

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 122 of file main.cpp.

TEST ( JsonMessageCover  ,
serializeJsonMessageCover   
)

Definition at line 30 of file main.cpp.

Here is the call graph for this function:

TEST ( JsonMessageCover  ,
unserializeJsonMessageCover   
)

Definition at line 45 of file main.cpp.

Here is the call graph for this function:

TEST ( JsonMessageCover  ,
useOutputStream   
)

Definition at line 66 of file main.cpp.

Here is the call graph for this function:

TEST ( JsonMessageCover  ,
useInputStream   
)

Definition at line 82 of file main.cpp.

TEST ( JsonMessageCover  ,
errorMessageJsonMessageCover   
)

Definition at line 104 of file main.cpp.

Variable Documentation

const std::string data = "Hello world!"

Definition at line 19 of file main.cpp.

const std::string invalidDecodeJson = "{\"data\":\"Hello world!\",\"ttl\":234,\"typ"

Definition at line 26 of file main.cpp.

const std::string invalidEncodeJson = "{\"data\":\"SGVsbG8gd29ybGQh\",\"ttl\":234,\"typ"

Definition at line 27 of file main.cpp.

unsigned int ttl = 234

Definition at line 21 of file main.cpp.

HCE::types::MessageType type = HCE::types::MessageType::mtSphinx

Definition at line 20 of file main.cpp.

const std::string validDecodeJson = "{\"data\":\"Hello world!\",\"ttl\":234,\"type\":1}"

Definition at line 23 of file main.cpp.

const std::string validEncodeJson = "{\"data\":\"SGVsbG8gd29ybGQh\",\"ttl\":234,\"type\":1}"

Definition at line 24 of file main.cpp.