All files / src/exits zcl_abapgit_exit.clas.testclasses.abap

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

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 191x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
CLASS ltcl_test DEFINITION DEFERRED.
CLASS zcl_abapgit_exit DEFINITION LOCAL FRIENDS ltcl_test.
 
" The class name ltcl_test is hardcoded in zcl_abapgit_exit=>is_running_in_test_context
 
CLASS ltcl_test DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT.
  PRIVATE SECTION.
    METHODS:
      is_running_in_test_context FOR TESTING.
ENDCLASS.
 
CLASS ltcl_test IMPLEMENTATION.
  METHOD is_running_in_test_context.
    cl_abap_unit_assert=>assert_equals(
      act = zcl_abapgit_exit=>is_running_in_test_context( )
      exp = abap_true ).
  ENDMETHOD.
ENDCLASS.