t_amorph.cpp File Reference

#include "bogon.cpp"
#include <basis/chaos.h>
#include <basis/function.h>
#include <basis/guards.h>
#include <data_struct/amorph.h>
#include <mechanisms/time_stamp.h>
#include <loggers/file_logger.h>
#include <data_struct/static_memory_gremlin.h>
#include <memory.h>
#include <stdlib.h>

Include dependency graph for t_amorph.cpp:

Go to the source code of this file.

Defines

#define DEBUG_ARRAY
#define DEBUG_AMORPH
#define LOG(to_print)   {}
#define static_class_name()   "t_amorph"
#define PROGRAM_NAME   "test_amorph"
#define PACK_BLOB_SIZE(max_limbs)   (max_limbs * sizeof(blob_hold))

Functions

int compare (amorph< byte_array > &one, amorph< byte_array > &two)
byte_array fake_pack (amorph< byte_array > &me)
amorph< byte_array > * fake_amorph_unpack (byte_array &packed_amorph)
void test_byte_array_amorph ()
int compare (const amorph< bogon > &one, const amorph< bogon > &two)
void test_bogon_amorph ()
template<class contents>
void test_amorph_of (const contents &bogus)
int main (int formal(argc), char *formal(argv)[])

Variables

 HOOPLE_STARTUP_CODE
const int default_test_iterations = 28
const int MAX_LIMBS = 200
const int MIN_CHUBBY = 60
const int MAX_RANDO = 275
const int MAX_TEST_DURATION = 1 * MINUTE_ms
const int MAX_SIMULTANEOUS_OBJECTS = 42


Define Documentation

#define DEBUG_AMORPH

Definition at line 22 of file t_amorph.cpp.

#define DEBUG_ARRAY

Definition at line 19 of file t_amorph.cpp.

#define LOG ( to_print   )     {}

Definition at line 31 of file t_amorph.cpp.

#define PACK_BLOB_SIZE ( max_limbs   )     (max_limbs * sizeof(blob_hold))

Definition at line 101 of file t_amorph.cpp.

Referenced by fake_amorph_unpack(), and fake_pack().

#define PROGRAM_NAME   "test_amorph"

Definition at line 65 of file t_amorph.cpp.

Referenced by compare().

 
#define static_class_name (  )     "t_amorph"

Definition at line 52 of file t_amorph.cpp.


Function Documentation

int compare ( const amorph< bogon > &  one,
const amorph< bogon > &  two 
)

int compare ( amorph< byte_array > &  one,
amorph< byte_array > &  two 
)

amorph<byte_array>* fake_amorph_unpack ( byte_array packed_amorph  ) 

byte_array fake_pack ( amorph< byte_array > &  me  ) 

int main ( int   formalargc,
char *  formal(argv)[] 
)

template<class contents>
void test_amorph_of ( const contents &  bogus  )  [inline]

Definition at line 491 of file t_amorph.cpp.

References chaos::inclusive(), MAX_SIMULTANEOUS_OBJECTS, MAX_TEST_DURATION, and rando.

void test_bogon_amorph (  ) 

void test_byte_array_amorph (  ) 


Variable Documentation

const int default_test_iterations = 28

Definition at line 54 of file t_amorph.cpp.

Referenced by test_bogon_amorph(), and test_byte_array_amorph().

Definition at line 50 of file t_amorph.cpp.

const int MAX_LIMBS = 200

Definition at line 56 of file t_amorph.cpp.

Referenced by test_bogon_amorph(), and test_byte_array_amorph().

const int MAX_RANDO = 275

Definition at line 62 of file t_amorph.cpp.

Referenced by test_bogon_amorph(), and test_byte_array_amorph().

const int MAX_SIMULTANEOUS_OBJECTS = 42

Definition at line 486 of file t_amorph.cpp.

const int MAX_TEST_DURATION = 1 * MINUTE_ms

Definition at line 483 of file t_amorph.cpp.

Referenced by deep_array_tester(), and test_amorph_of().

const int MIN_CHUBBY = 60

Definition at line 59 of file t_amorph.cpp.

Referenced by test_bogon_amorph(), and test_byte_array_amorph().


Generated on Mon Jul 26 04:22:56 2010 for HOOPLE Libraries by  doxygen 1.5.6