mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
ajson, Automatic Update (#5837)
This commit is contained in:
parent
4ddd3444a6
commit
8add5d6391
|
@ -389,7 +389,7 @@ CLASS lcl_json_serializer DEFINITION FINAL CREATE PRIVATE.
|
|||
DATA mv_indent_step TYPE i.
|
||||
DATA mv_level TYPE i.
|
||||
|
||||
CLASS-METHODS escape
|
||||
CLASS-METHODS escape_string
|
||||
IMPORTING
|
||||
iv_unescaped TYPE string
|
||||
RETURNING
|
||||
|
@ -475,7 +475,7 @@ CLASS lcl_json_serializer IMPLEMENTATION.
|
|||
WHEN zif_abapgit_ajson=>node_type-object.
|
||||
lv_item = lv_item && '{'.
|
||||
WHEN zif_abapgit_ajson=>node_type-string.
|
||||
lv_item = lv_item && |"{ escape( is_node-value ) }"|.
|
||||
lv_item = lv_item && |"{ escape_string( is_node-value ) }"|.
|
||||
WHEN zif_abapgit_ajson=>node_type-boolean OR zif_abapgit_ajson=>node_type-number.
|
||||
lv_item = lv_item && is_node-value.
|
||||
WHEN zif_abapgit_ajson=>node_type-null.
|
||||
|
@ -560,7 +560,7 @@ CLASS lcl_json_serializer IMPLEMENTATION.
|
|||
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD escape.
|
||||
METHOD escape_string.
|
||||
|
||||
rv_escaped = iv_unescaped.
|
||||
IF rv_escaped CA |"\\\t\n\r|.
|
||||
|
@ -897,12 +897,12 @@ CLASS lcl_json_to_abap IMPLEMENTATION.
|
|||
IF is_parent_type-tab_item_buf IS BOUND. " Indirect hint that table was sorted/hashed, see get_node_type.
|
||||
TRY.
|
||||
INSERT <tab_item> INTO TABLE <parent_anytab>.
|
||||
CATCH cx_sy_itab_duplicate_key.
|
||||
sy-subrc = 4.
|
||||
ENDTRY.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_ajson_error=>raise( 'Duplicate insertion' ).
|
||||
ENDIF.
|
||||
CATCH cx_sy_itab_duplicate_key.
|
||||
zcx_abapgit_ajson_error=>raise( 'Duplicate insertion' ).
|
||||
ENDTRY.
|
||||
ENDIF.
|
||||
|
||||
ENDLOOP.
|
||||
|
|
|
@ -405,7 +405,7 @@ CLASS ltcl_serializer_test DEFINITION FINAL
|
|||
METHODS item_order FOR TESTING RAISING zcx_abapgit_ajson_error.
|
||||
METHODS simple_indented FOR TESTING RAISING zcx_abapgit_ajson_error.
|
||||
METHODS empty_set FOR TESTING RAISING zcx_abapgit_ajson_error.
|
||||
METHODS escape FOR TESTING RAISING zcx_abapgit_ajson_error.
|
||||
METHODS escape_string FOR TESTING RAISING zcx_abapgit_ajson_error.
|
||||
METHODS empty FOR TESTING RAISING zcx_abapgit_ajson_error.
|
||||
|
||||
ENDCLASS.
|
||||
|
@ -684,7 +684,7 @@ CLASS ltcl_serializer_test IMPLEMENTATION.
|
|||
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD escape.
|
||||
METHOD escape_string.
|
||||
|
||||
DATA lv_act TYPE string.
|
||||
DATA lv_exp TYPE string.
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_serializer_test", "method": "array_index", "note": "uses secondary index array_index?"},
|
||||
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_serializer_test", "method": "item_order", "note": "uses secondary index item_order?"},
|
||||
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_serializer_test", "method": "simple_indented", "note": "some sorting"},
|
||||
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_serializer_test", "method": "escape", "note": "ASSERT failed, ??"},
|
||||
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_serializer_test", "method": "escape_string", "note": "ASSERT failed, ??"},
|
||||
|
||||
{"object": "ZCL_ABAPGIT_SERIALIZE", "class": "ltcl_determine_max_threads", "method": "determine_max_threads", "note": "TypeError: abap.FunctionModules.FUNCTION_EXISTS is not a function"},
|
||||
{"object": "ZCL_ABAPGIT_SERIALIZE", "class": "ltcl_serialize", "method": "test", "note": "Void type: KO100"},
|
||||
|
@ -128,6 +128,7 @@
|
|||
{"object": "ZCL_ABAPGIT_FOLDER_LOGIC", "class": "ltcl_folder_logic", "method": "full3", "note": "??"},
|
||||
|
||||
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_json_to_abap", "method": "to_abap_array_of_arrays", "note": "Expected table to contain 2 rows, got 4"},
|
||||
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_json_to_abap", "method": "to_abap_negative", "note": "??"},
|
||||
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_writer_test", "method": "overwrite_w_keep_order_touch", "note": "some sorting"},
|
||||
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_writer_test", "method": "overwrite_w_keep_order_set", "note": "some sorting"},
|
||||
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_writer_test", "method": "set_tab_hashed", "note": "runtime error, SortByLengthZero"},
|
||||
|
|
Loading…
Reference in New Issue
Block a user