hazy_msg_test.cxx File Reference


Functions

void fvector_to_dbstring_without_cast (const FVector &v, std::string &feature_values)
 Converts FVector to dbstring without using cast as float8[].
void svector_to_dbstring_without_cast (const SVector &s, std::string &feature_vector_str)
 Converts SVector to dbstring without using cast as pair[].
void fillVectors ()
 Randomly fill fvector and svector lists.
void test_count (bool &success)
 Tests count hazy message method.
template<class T>
void single_test_update (T vec, bool &success)
 Tests that update message is working correctly.
template<class T>
void single_test_se_lazy_naive (T vec, bool &success, bool dense)
 Tests that single entity read lazy naive message is working correctly.
template<class T>
void single_test_se_lazy_hazy (T vec, bool &success, bool dense)
 Tests that single entity read lazy hazy is working correctly.
void test_update (bool &success)
 Tests that update method is working correctly.
void test_se_lazy_hazy (bool &success)
 Tests that single entity read lazy hazy is working correctly.
void test_se_lazy_naive (bool &success)
 Tests that single entity read lazy naive is working correctly.
void test_query_id (bool &success)
 Tests that query server id is working correctly.
void test_close_connection (bool &success)
 Tests that close connection query is working correctly.
void create_random_string (char *s, size_t len)
void test_create_view (bool &success)
void test_delete_bin (bool &success)
void test_se_eager (bool &success)
 Tests that single entity read eager is working correctly.
template<class T>
void single_test_se_lazy_naive_bin (T vec, bool &success)
 Tests that single entity read lazy naive that sends binary data is working correctly.
void test_se_lazy_naive_bin (bool &success)
 Tests that single entity read lazy naive that sends binary data is working correctly.
template<class T>
void single_test_se_lazy_hazy_bin (T vec, bool &success)
 Tests that single entity read lazy hazy that sends binary data is working correctly.
void test_se_lazy_hazy_bin (bool &success)
 Tests that single entity read lazy hazy that sends binary data is working correctly.
int main ()

Variables

const int numSVectors = 50
 This class implements regression tests for hazy message class For each query in hazy message, a test first fills both SVector and FVector lists to be used Then, it creates a msg for that query and check that msg is correctly created.
int dim = 10000
int max_svector_dim = 10000
const int test_num = numSVectors
const int range = 100
FVector fVectorList [numSVectors]
SVector sVectorList [numSVectors]

Function Documentation

void create_random_string ( char *  s,
size_t  len 
)

void fillVectors (  ) 

Randomly fill fvector and svector lists.

void fvector_to_dbstring_without_cast ( const FVector v,
std::string &  feature_values 
)

Converts FVector to dbstring without using cast as float8[].

Parameters:
[in] v FVector
[out] feature_values dbstring which is created

int main (  ) 

template<class T>
void single_test_se_lazy_hazy ( vec,
bool &  success,
bool  dense 
)

Tests that single entity read lazy hazy is working correctly.

Parameters:
[in] vec feature vector of the entity
[out] success 
[in] dense whether feature vector is dense or sparse

template<class T>
void single_test_se_lazy_hazy_bin ( vec,
bool &  success 
)

Tests that single entity read lazy hazy that sends binary data is working correctly.

Parameters:
[in] vec feature vector of the entity
[out] success 

template<class T>
void single_test_se_lazy_naive ( vec,
bool &  success,
bool  dense 
)

Tests that single entity read lazy naive message is working correctly.

Parameters:
[in] vec feature vector of the entity
[out] success 
[in] dense whether vector is sparse or dense

template<class T>
void single_test_se_lazy_naive_bin ( vec,
bool &  success 
)

Tests that single entity read lazy naive that sends binary data is working correctly.

Parameters:
[in] vec feature vector of the entity
[out] success 

template<class T>
void single_test_update ( vec,
bool &  success 
)

Tests that update message is working correctly.

Parameters:
[in] vec feature vector of the entity
[out] success 

void svector_to_dbstring_without_cast ( const SVector s,
std::string &  feature_vector_str 
)

Converts SVector to dbstring without using cast as pair[].

Parameters:
[in] s SVector
[out] feature_vector_str dbstring which is created

void test_close_connection ( bool &  success  ) 

Tests that close connection query is working correctly.

Parameters:
[out] success 

void test_count ( bool &  success  ) 

Tests count hazy message method.

Parameters:
[out] success 

void test_create_view ( bool &  success  ) 

void test_delete_bin ( bool &  success  ) 

void test_query_id ( bool &  success  ) 

Tests that query server id is working correctly.

Parameters:
[out] success 

void test_se_eager ( bool &  success  ) 

Tests that single entity read eager is working correctly.

Parameters:
[out] success 

void test_se_lazy_hazy ( bool &  success  ) 

Tests that single entity read lazy hazy is working correctly.

Parameters:
[out] success 

void test_se_lazy_hazy_bin ( bool &  success  ) 

Tests that single entity read lazy hazy that sends binary data is working correctly.

Parameters:
[out] success 

void test_se_lazy_naive ( bool &  success  ) 

Tests that single entity read lazy naive is working correctly.

Parameters:
[out] success 

void test_se_lazy_naive_bin ( bool &  success  ) 

Tests that single entity read lazy naive that sends binary data is working correctly.

Parameters:
[out] success 

void test_update ( bool &  success  ) 

Tests that update method is working correctly.

Parameters:
[out] success 


Variable Documentation

int dim = 10000

FVector fVectorList[numSVectors]

int max_svector_dim = 10000

const int numSVectors = 50

This class implements regression tests for hazy message class For each query in hazy message, a test first fills both SVector and FVector lists to be used Then, it creates a msg for that query and check that msg is correctly created.

Then, tests that we correctly retrieve message code Finally, tests whether we correctly parse elements or not

const int range = 100

SVector sVectorList[numSVectors]

const int test_num = numSVectors


Generated on Wed Dec 15 10:46:16 2010 for Hazy_System by  doxygen 1.4.7