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

Typedefs

using istream_unit = ecl::istream< mock_device >
 

Functions

 TEST_GROUP (istream)
 
 TEST (istream, get)
 
 TEST (istream, read_char)
 
 TEST (istream, read_char_error_case)
 
 TEST (istream, read_string)
 
 TEST (istream, read_string_with_special_chars)
 
 TEST (istream, read_string_linefeed)
 
 TEST (istream, read_string_error_case)
 
 TEST (istream, read_int)
 
 TEST (istream, read_int_min)
 
 TEST (istream, read_int_with_linefeeds)
 
 TEST (istream, read_int_with_hyphens)
 
 TEST (istream, read_int_zero)
 
 TEST (istream, read_int_bigger_than_max)
 
 TEST (istream, read_int_error_case)
 
 TEST (istream, read_unsigned_int)
 
 TEST (istream, read_unsigned_zero)
 
 TEST (istream, read_unsigned_consequent)
 
 TEST (istream, read_unsigned_int_error_case)
 
int main (int argc, char *argv[])
 

Typedef Documentation

◆ istream_unit

using istream_unit = ecl::istream< mock_device >

Function Documentation

◆ TEST_GROUP()

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

◆ TEST() [1/18]

TEST ( istream  ,
get   
)

◆ TEST() [2/18]

TEST ( istream  ,
read_char   
)

◆ TEST() [3/18]

TEST ( istream  ,
read_char_error_case   
)

◆ TEST() [4/18]

TEST ( istream  ,
read_string   
)

◆ TEST() [5/18]

TEST ( istream  ,
read_string_with_special_chars   
)

◆ TEST() [6/18]

TEST ( istream  ,
read_string_linefeed   
)

◆ TEST() [7/18]

TEST ( istream  ,
read_string_error_case   
)

◆ TEST() [8/18]

TEST ( istream  ,
read_int   
)

◆ TEST() [9/18]

TEST ( istream  ,
read_int_min   
)

◆ TEST() [10/18]

TEST ( istream  ,
read_int_with_linefeeds   
)

◆ TEST() [11/18]

TEST ( istream  ,
read_int_with_hyphens   
)

◆ TEST() [12/18]

TEST ( istream  ,
read_int_zero   
)

◆ TEST() [13/18]

TEST ( istream  ,
read_int_bigger_than_max   
)

◆ TEST() [14/18]

TEST ( istream  ,
read_int_error_case   
)

◆ TEST() [15/18]

TEST ( istream  ,
read_unsigned_int   
)

◆ TEST() [16/18]

TEST ( istream  ,
read_unsigned_zero   
)

◆ TEST() [17/18]

TEST ( istream  ,
read_unsigned_consequent   
)

◆ TEST() [18/18]

TEST ( istream  ,
read_unsigned_int_error_case   
)

◆ main()

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