mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
fix lintr
This commit is contained in:
parent
7ee4b45baa
commit
f22f2ebd17
|
@ -73,7 +73,11 @@ CLASS ltcl_stage DEFINITION FINAL FOR TESTING
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_path TYPE csequence
|
iv_path TYPE csequence
|
||||||
iv_filename TYPE csequence,
|
iv_filename TYPE csequence,
|
||||||
then_there_is_nothing_to_stage.
|
then_there_is_nothing_to_stage,
|
||||||
|
assert_table_contains
|
||||||
|
IMPORTING
|
||||||
|
is_stage TYPE zif_abapgit_definitions=>ty_stage
|
||||||
|
it_stage TYPE zif_abapgit_definitions=>ty_stage_tt.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
|
@ -365,9 +369,9 @@ CLASS ltcl_stage IMPLEMENTATION.
|
||||||
ls_exp-file-filename = iv_filename.
|
ls_exp-file-filename = iv_filename.
|
||||||
ls_exp-method = zif_abapgit_definitions=>c_method-ignore.
|
ls_exp-method = zif_abapgit_definitions=>c_method-ignore.
|
||||||
|
|
||||||
cl_abap_unit_assert=>assert_table_contains(
|
assert_table_contains(
|
||||||
line = ls_exp
|
is_stage = ls_exp
|
||||||
table = lt_stage ).
|
it_stage = lt_stage ).
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
@ -385,9 +389,9 @@ CLASS ltcl_stage IMPLEMENTATION.
|
||||||
ls_exp-status-filename = iv_filename.
|
ls_exp-status-filename = iv_filename.
|
||||||
ls_exp-status-path = iv_path.
|
ls_exp-status-path = iv_path.
|
||||||
|
|
||||||
cl_abap_unit_assert=>assert_table_contains(
|
assert_table_contains(
|
||||||
line = ls_exp
|
is_stage = ls_exp
|
||||||
table = lt_stage ).
|
it_stage = lt_stage ).
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
@ -423,9 +427,9 @@ CLASS ltcl_stage IMPLEMENTATION.
|
||||||
ls_exp-status-filename = iv_filename.
|
ls_exp-status-filename = iv_filename.
|
||||||
ls_exp-status-path = iv_path.
|
ls_exp-status-path = iv_path.
|
||||||
|
|
||||||
cl_abap_unit_assert=>assert_table_contains(
|
assert_table_contains(
|
||||||
line = ls_exp
|
is_stage = ls_exp
|
||||||
table = lt_stage ).
|
it_stage = lt_stage ).
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
@ -436,4 +440,18 @@ CLASS ltcl_stage IMPLEMENTATION.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
|
METHOD assert_table_contains.
|
||||||
|
|
||||||
|
READ TABLE it_stage WITH TABLE KEY file-path = is_stage-file-path
|
||||||
|
file-filename = is_stage-file-filename
|
||||||
|
ASSIGNING FIELD-SYMBOL(<ls_stage>).
|
||||||
|
cl_abap_unit_assert=>assert_subrc( 0 ).
|
||||||
|
|
||||||
|
cl_abap_unit_assert=>assert_equals(
|
||||||
|
act = <ls_stage>
|
||||||
|
exp = is_stage ).
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user