All files / src/git zcl_abapgit_git_factory.clas.abap

95.23% Statements 40/42
0% Branches 0/1
100% Functions 0/0
95.23% Lines 40/42

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 431x 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 1x     1x 1x 1x 1x 1x 1x  
CLASS zcl_abapgit_git_factory DEFINITION
  PUBLIC
  FINAL
  CREATE PRIVATE
  GLOBAL FRIENDS zcl_abapgit_git_injector .
 
  PUBLIC SECTION.
    CLASS-METHODS:
      get_v2_porcelain
        RETURNING VALUE(ri_v2) TYPE REF TO zif_abapgit_gitv2_porcelain,
 
      get_git_transport
        RETURNING
          VALUE(ri_git_transport) TYPE REF TO zif_abapgit_git_transport.
 
  PROTECTED SECTION.
  PRIVATE SECTION.
    CLASS-DATA:
      gi_git_transport TYPE REF TO zif_abapgit_git_transport.
 
ENDCLASS.
 
 
 
CLASS zcl_abapgit_git_factory IMPLEMENTATION.
 
  METHOD get_v2_porcelain.
    CREATE OBJECT ri_v2 TYPE zcl_abapgit_gitv2_porcelain.
  ENDMETHOD.
 
 
  METHOD get_git_transport.
 
    IF gi_git_transport IS INITIAL.
      CREATE OBJECT gi_git_transport TYPE zcl_abapgit_git_transport.
    ENDIF.
 
    ri_git_transport = gi_git_transport.
 
  ENDMETHOD.
 
ENDCLASS.