All files / src/utils zcl_abapgit_string_buffer.clas.testclasses.abap

100% Statements 21/21
100% Branches 1/1
100% Functions 1/1
100% Lines 21/21

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 221x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
CLASS ltcl_test_strbuf DEFINITION FOR TESTING
  RISK LEVEL HARMLESS
  DURATION SHORT.
 
  PUBLIC SECTION.
 
    METHODS join_space FOR TESTING.
 
ENDCLASS.
 
CLASS ltcl_test_strbuf IMPLEMENTATION.
 
  METHOD join_space.
 
    cl_abap_unit_assert=>assert_equals(
      act = zcl_abapgit_string_buffer=>new( )->add( 'a' )->add( 'b' )->join_w_space_and_flush( )
      exp = 'a b' ).
 
  ENDMETHOD.
 
ENDCLASS.