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 | 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 1x 1x | CLASS ltcl_complete_heads_name DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
METHODS:
short_name FOR TESTING,
full_name FOR TESTING,
upper_case_prefix FOR TESTING.
ENDCLASS.
CLASS ltcl_complete_heads_name IMPLEMENTATION.
METHOD short_name.
cl_abap_unit_assert=>assert_equals(
act = zcl_abapgit_git_branch_utils=>complete_heads_branch_name( 'feature' )
exp = 'refs/heads/feature' ).
ENDMETHOD.
METHOD full_name.
cl_abap_unit_assert=>assert_equals(
act = zcl_abapgit_git_branch_utils=>complete_heads_branch_name( 'refs/heads/feature' )
exp = 'refs/heads/feature' ).
ENDMETHOD.
METHOD upper_case_prefix.
" refs are case-sensitive in Git: REFS/HEADS/x is outside refs/heads/,
" and the remote refuses it as a "funny refname"
cl_abap_unit_assert=>assert_equals(
act = zcl_abapgit_git_branch_utils=>complete_heads_branch_name( 'REFS/HEADS/feature' )
exp = 'refs/heads/REFS/HEADS/feature' ).
ENDMETHOD.
ENDCLASS.
|