All files / src/env zcl_abapgit_environment.clas.testclasses.abap

92.42% Statements 61/66
100% Branches 5/5
83.33% Functions 5/6
92.42% Lines 61/66

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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 671x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 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_environment DEFINITION LOCAL FRIENDS ltcl_test.
 
CLASS ltcl_test DEFINITION FOR TESTING
  DURATION SHORT
  RISK LEVEL HARMLESS FINAL.
 
  PRIVATE SECTION.
    DATA:
      mi_cut TYPE REF TO zif_abapgit_environment.
 
    METHODS:
      setup,
      is_sap_cloud_platform FOR TESTING,
      is_merged FOR TESTING,
      is_repo_object_changes_allowed FOR TESTING,
      compare_with_inactive FOR TESTING,
      is_restart_required FOR TESTING.
 
ENDCLASS.
 
 
CLASS ltcl_test IMPLEMENTATION.
 
  METHOD setup.
 
    CREATE OBJECT mi_cut TYPE zcl_abapgit_environment.
 
  ENDMETHOD.
 
  METHOD is_sap_cloud_platform.
 
    mi_cut->is_sap_cloud_platform( ).
* no assertions, just make sure the dynamic code runs
 
  ENDMETHOD.
 
  METHOD is_merged.
 
    mi_cut->is_merged( ).
* no assertions, just make sure the dynamic code runs
 
  ENDMETHOD.
 
  METHOD is_repo_object_changes_allowed.

    mi_cut->is_repo_object_changes_allowed( ).
* no assertions, just make sure the dynamic code runs

  ENDMETHOD.
 
  METHOD compare_with_inactive.
 
    mi_cut->compare_with_inactive( ).
* no assertions, just make sure the dynamic code runs
 
  ENDMETHOD.
 
  METHOD is_restart_required.
 
    mi_cut->is_restart_required( ).
* no assertions, just make sure the dynamic code runs
 
  ENDMETHOD.
 
ENDCLASS.