feisty meow concerns codebase  2.140
test_span_manager.cpp File Reference
Include dependency graph for test_span_manager.cpp:

Go to the source code of this file.

Macros

#define LOG(to_print)   EMERGENCY_LOG(program_wide_logger().get(), astring(to_print))
 
#define DEBUG_SPAN_MANAGER
 
#define MAX_SPANS   8
 
#define INIT_STUFF   int_array stuffer;
 
#define STUFF(a, b)
 
#define SEND(send_to)    send_to.update(stuffer); stuffer.reset(0);
 
#define COMP(to_compare, i)
 stuffer.number_of_spans = stuff_index / 2; \ old More...
 

Functions

 HOOPLE_MAIN (test_span_manager,)
 

Macro Definition Documentation

◆ COMP

#define COMP (   to_compare,
 
)
Value:
{ \
ASSERT_EQUAL(to_compare, rec_list[i], "comparison found incorrect"); \
if (to_compare != rec_list[i]) LOG(a_sprintf("failed at index %d", i)); \
}
a_sprintf is a specialization of astring that provides printf style support.
Definition: astring.h:440
#define LOG(to_print)

stuffer.number_of_spans = stuff_index / 2; \ old

Definition at line 58 of file test_span_manager.cpp.

◆ DEBUG_SPAN_MANAGER

#define DEBUG_SPAN_MANAGER

Definition at line 37 of file test_span_manager.cpp.

◆ INIT_STUFF

#define INIT_STUFF   int_array stuffer;

Definition at line 43 of file test_span_manager.cpp.

◆ LOG

#define LOG (   to_print)    EMERGENCY_LOG(program_wide_logger().get(), astring(to_print))

Definition at line 35 of file test_span_manager.cpp.

◆ MAX_SPANS

#define MAX_SPANS   8

Definition at line 40 of file test_span_manager.cpp.

◆ SEND

#define SEND (   send_to)     send_to.update(stuffer); stuffer.reset(0);

Definition at line 53 of file test_span_manager.cpp.

◆ STUFF

#define STUFF (   a,
 
)
Value:
{ \
ASSERT_FALSE(stuffer.length() / 2 + 1 > MAX_SPANS, "STUFF: too many for spans"); \
stuffer.concatenate(a); stuffer.concatenate(b); \
}
#define MAX_SPANS

Definition at line 46 of file test_span_manager.cpp.

Function Documentation

◆ HOOPLE_MAIN()

HOOPLE_MAIN ( test_span_manager  )