theCore C++ embedded framework
ostream_unit.cpp File Reference
#include <limits.h>
#include <sstream>
#include "ecl/ostream.hpp"
#include "mock_device.hpp"
#include <CppUTest/TestHarness.h>
#include <CppUTest/CommandLineTestRunner.h>
#include <CppUTestExt/MockSupport.h>
Include dependency graph for ostream_unit.cpp:

Typedefs

using ostream_unit = ecl::ostream< mock_device >
 

Functions

 TEST_GROUP (ostream)
 
 TEST (ostream, put)
 
 TEST (ostream, write_char)
 
 TEST (ostream, write_char_error_case)
 
 TEST (ostream, write_string)
 
 TEST (ostream, write_string_with_linefeed)
 
 TEST (ostream, write_empty_string)
 
 TEST (ostream, write_string_error_case)
 
 TEST (ostream, write_int)
 
 TEST (ostream, write_int_error_case)
 
 TEST (ostream, write_int_min)
 
 TEST (ostream, write_int_max)
 
 TEST (ostream, write_zero)
 
 TEST (ostream, write_unsigned_int)
 
 TEST (ostream, write_unsigned_int_max)
 
 TEST (ostream, write_unsigned_int_zero)
 
 TEST (ostream, write_unsigned_int_error_case)
 
int main (int argc, char *argv[])
 

Typedef Documentation

◆ ostream_unit

using ostream_unit = ecl::ostream< mock_device >

Function Documentation

◆ TEST_GROUP()

TEST_GROUP ( ostream  )
Here is the call graph for this function:

◆ TEST() [1/16]

TEST ( ostream  ,
put   
)

◆ TEST() [2/16]

TEST ( ostream  ,
write_char   
)

◆ TEST() [3/16]

TEST ( ostream  ,
write_char_error_case   
)

◆ TEST() [4/16]

TEST ( ostream  ,
write_string   
)

◆ TEST() [5/16]

TEST ( ostream  ,
write_string_with_linefeed   
)

◆ TEST() [6/16]

TEST ( ostream  ,
write_empty_string   
)

◆ TEST() [7/16]

TEST ( ostream  ,
write_string_error_case   
)

◆ TEST() [8/16]

TEST ( ostream  ,
write_int   
)

◆ TEST() [9/16]

TEST ( ostream  ,
write_int_error_case   
)

◆ TEST() [10/16]

TEST ( ostream  ,
write_int_min   
)

◆ TEST() [11/16]

TEST ( ostream  ,
write_int_max   
)

◆ TEST() [12/16]

TEST ( ostream  ,
write_zero   
)

◆ TEST() [13/16]

TEST ( ostream  ,
write_unsigned_int   
)

◆ TEST() [14/16]

TEST ( ostream  ,
write_unsigned_int_max   
)

◆ TEST() [15/16]

TEST ( ostream  ,
write_unsigned_int_zero   
)

◆ TEST() [16/16]

TEST ( ostream  ,
write_unsigned_int_error_case   
)

◆ main()

int main ( int  argc,
char *  argv[] 
)