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 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 3x 3x 3x 3x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | CLASS ltcl_abapgit_syntax_json DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA: mo_cut TYPE REF TO zcl_abapgit_syntax_json. METHODS: setup, key_value FOR TESTING RAISING cx_static_check, comment_1 FOR TESTING RAISING cx_static_check, comment_2 FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_abapgit_syntax_json IMPLEMENTATION. METHOD setup. CREATE OBJECT mo_cut. ENDMETHOD. METHOD key_value. cl_abap_unit_assert=>assert_equals( act = mo_cut->process_line( |"key":"value"| ) exp = |<span class="text">"key"</span>:<span class="properties">"value"</span>| ). ENDMETHOD. METHOD comment_1. cl_abap_unit_assert=>assert_equals( act = mo_cut->process_line( |"key":"value" // comment| ) exp = |<span class="text">"key"</span>:<span class="properties">"value"</span>| && | <span class="comment">//</span> comment| ). ENDMETHOD. METHOD comment_2. cl_abap_unit_assert=>assert_equals( act = mo_cut->process_line( |/* comment */| ) exp = |<span class="comment">/* comment */</span>| ). ENDMETHOD. ENDCLASS. |