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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 1x 2x 2x 2x 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 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const {zcl_abapgit_xml} = await import("./zcl_abapgit_xml.clas.mjs"); const {zcl_abapgit_xml_input} = await import("./zcl_abapgit_xml_input.clas.mjs"); const {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_xml_input.clas.testclasses.abap class ltcl_xml { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_XML_INPUT-LTCL_XML'; static IMPLEMENTED_INTERFACES = []; static ATTRIBUTES = {}; static METHODS = {"UP": {"visibility": "U", "parameters": {}}, "EMPTY": {"visibility": "U", "parameters": {}}, "INPUT": {"visibility": "U", "parameters": {}}, "READ_INTF": {"visibility": "U", "parameters": {}}, "DOWN": {"visibility": "U", "parameters": {}}}; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { "up": this.up.bind(this), "empty": this.empty.bind(this), "input": this.input.bind(this), "read_intf": this.read_intf.bind(this), "down": this.down.bind(this), }; } async constructor_(INPUT) { if (super.constructor_) { await super.constructor_(INPUT); } return this; } async input() { let lv_xml = new abap.types.String({qualifiedName: "STRING"}); let lo_input = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_XML_INPUT", RTTIName: "\\CLASS=ZCL_ABAPGIT_XML_INPUT"}); let ls_data = new abap.types.Structure({ "foo": new abap.types.Integer({qualifiedName: "LTCL_XML=>TY_OLD-FOO"}), "bar": new abap.types.Character(1, {"qualifiedName":"ltcl_xml=>ty_old-bar"})}, "ltcl_xml=>ty_old", undefined, {}, {}); lv_xml.set(abap.operators.concat(new abap.types.String().set(`<?xml version="1.0" encoding="utf-16"?>\n`),abap.operators.concat(new abap.types.String().set(`<abapGit version="v1.0.0">\n`),abap.operators.concat(new abap.types.String().set(` <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">\n`),abap.operators.concat(new abap.types.String().set(` <asx:values>\n`),abap.operators.concat(new abap.types.String().set(` <DATA>\n`),abap.operators.concat(new abap.types.String().set(` <FOO>2</FOO>\n`),abap.operators.concat(new abap.types.String().set(` </DATA>\n`),abap.operators.concat(new abap.types.String().set(` </asx:values>\n`),abap.operators.concat(new abap.types.String().set(` </asx:abap>\n`),new abap.types.String().set(`</abapGit>`))))))))))); lo_input.set(await (new abap.Classes['ZCL_ABAPGIT_XML_INPUT']()).constructor_({iv_xml: lv_xml})); await lo_input.get().zif_abapgit_xml_input$read({iv_name: abap.CharacterFactory.get(4, 'DATA'), cg_data: ls_data}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_data.get().foo, exp: abap.IntegerFactory.get(2)}); } async empty() { let ls_old = new abap.types.Structure({ "foo": new abap.types.Integer({qualifiedName: "LTCL_XML=>TY_OLD-FOO"}), "bar": new abap.types.Character(1, {"qualifiedName":"ltcl_xml=>ty_old-bar"})}, "ltcl_xml=>ty_old", undefined, {}, {}); let ls_new = new abap.types.Structure({ "foo": new abap.types.Integer({qualifiedName: "LTCL_XML=>TY_NEW-FOO"}), "bar": new abap.types.Character(1, {"qualifiedName":"ltcl_xml=>ty_new-bar"}), "moo": new abap.types.Float({qualifiedName: "LTCL_XML=>TY_NEW-MOO"})}, "ltcl_xml=>ty_new", undefined, {}, {}); let lv_xml = new abap.types.String({qualifiedName: "STRING"}); let lo_input = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_XML_INPUT", RTTIName: "\\CLASS=ZCL_ABAPGIT_XML_INPUT"}); let lo_output = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_XML_OUTPUT", RTTIName: "\\CLASS=ZCL_ABAPGIT_XML_OUTPUT"}); ls_old.clear(); lo_output.set(await (new abap.Classes['ZCL_ABAPGIT_XML_OUTPUT']()).constructor_()); await lo_output.get().zif_abapgit_xml_output$add({iv_name: abap.CharacterFactory.get(4, 'DATA'), ig_data: ls_old}); lv_xml.set((await lo_output.get().zif_abapgit_xml_output$render())); lo_input.set(await (new abap.Classes['ZCL_ABAPGIT_XML_INPUT']()).constructor_({iv_xml: lv_xml})); await lo_input.get().zif_abapgit_xml_input$read({iv_name: abap.CharacterFactory.get(4, 'DATA'), cg_data: ls_new}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_new.get().foo, exp: ls_old.get().foo}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_new.get().bar, exp: ls_old.get().bar}); } async up() { let ls_old = new abap.types.Structure({ "foo": new abap.types.Integer({qualifiedName: "LTCL_XML=>TY_OLD-FOO"}), "bar": new abap.types.Character(1, {"qualifiedName":"ltcl_xml=>ty_old-bar"})}, "ltcl_xml=>ty_old", undefined, {}, {}); let ls_new = new abap.types.Structure({ "foo": new abap.types.Integer({qualifiedName: "LTCL_XML=>TY_NEW-FOO"}), "bar": new abap.types.Character(1, {"qualifiedName":"ltcl_xml=>ty_new-bar"}), "moo": new abap.types.Float({qualifiedName: "LTCL_XML=>TY_NEW-MOO"})}, "ltcl_xml=>ty_new", undefined, {}, {}); let lv_xml = new abap.types.String({qualifiedName: "STRING"}); let lo_input = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_XML_INPUT", RTTIName: "\\CLASS=ZCL_ABAPGIT_XML_INPUT"}); let lo_output = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_XML_OUTPUT", RTTIName: "\\CLASS=ZCL_ABAPGIT_XML_OUTPUT"}); ls_old.get().foo.set(abap.IntegerFactory.get(2)); ls_old.get().bar.set(abap.CharacterFactory.get(1, 'A')); lo_output.set(await (new abap.Classes['ZCL_ABAPGIT_XML_OUTPUT']()).constructor_()); await lo_output.get().zif_abapgit_xml_output$add({iv_name: abap.CharacterFactory.get(4, 'DATA'), ig_data: ls_old}); lv_xml.set((await lo_output.get().zif_abapgit_xml_output$render())); lo_input.set(await (new abap.Classes['ZCL_ABAPGIT_XML_INPUT']()).constructor_({iv_xml: lv_xml})); await lo_input.get().zif_abapgit_xml_input$read({iv_name: abap.CharacterFactory.get(4, 'DATA'), cg_data: ls_new}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_new.get().foo, exp: ls_old.get().foo}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_new.get().bar, exp: ls_old.get().bar}); } async down() { let ls_old = new abap.types.Structure({ "foo": new abap.types.Integer({qualifiedName: "LTCL_XML=>TY_OLD-FOO"}), "bar": new abap.types.Character(1, {"qualifiedName":"ltcl_xml=>ty_old-bar"})}, "ltcl_xml=>ty_old", undefined, {}, {}); let ls_new = new abap.types.Structure({ "foo": new abap.types.Integer({qualifiedName: "LTCL_XML=>TY_NEW-FOO"}), "bar": new abap.types.Character(1, {"qualifiedName":"ltcl_xml=>ty_new-bar"}), "moo": new abap.types.Float({qualifiedName: "LTCL_XML=>TY_NEW-MOO"})}, "ltcl_xml=>ty_new", undefined, {}, {}); let lv_xml = new abap.types.String({qualifiedName: "STRING"}); let lo_input = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_XML_INPUT", RTTIName: "\\CLASS=ZCL_ABAPGIT_XML_INPUT"}); let lo_output = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_XML_OUTPUT", RTTIName: "\\CLASS=ZCL_ABAPGIT_XML_OUTPUT"}); ls_new.get().foo.set(abap.IntegerFactory.get(2)); ls_new.get().bar.set(abap.CharacterFactory.get(1, 'A')); ls_new.get().moo.set(abap.IntegerFactory.get(5)); lo_output.set(await (new abap.Classes['ZCL_ABAPGIT_XML_OUTPUT']()).constructor_()); await lo_output.get().zif_abapgit_xml_output$add({iv_name: abap.CharacterFactory.get(4, 'DATA'), ig_data: ls_new}); lv_xml.set((await lo_output.get().zif_abapgit_xml_output$render())); lo_input.set(await (new abap.Classes['ZCL_ABAPGIT_XML_INPUT']()).constructor_({iv_xml: lv_xml})); await lo_input.get().zif_abapgit_xml_input$read({iv_name: abap.CharacterFactory.get(4, 'DATA'), cg_data: ls_old}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_old.get().foo, exp: ls_new.get().foo}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_old.get().bar, exp: ls_new.get().bar}); } async read_intf() { let ls_vseointerf = new abap.types.Structure({ "clsname": new abap.types.Character(30, {}), "version": new abap.types.Numc(), "langu": new abap.types.Character(1, {}), "descript": new abap.types.Character(60, {}), "uuid": new abap.types.Hex({length: 16}), "category": new abap.types.Numc({length: 2}), "exposure": new abap.types.Numc(), "state": new abap.types.Numc(), "release": new abap.types.Numc(), "author": new abap.types.Character(12, {}), "createdon": new abap.types.Date(), "changedby": new abap.types.Character(12, {}), "changedon": new abap.types.Date(), "chgdanyby": new abap.types.Character(12, {}), "chgdanyon": new abap.types.Date(), "remote": new abap.types.Character(1, {}), "unicode": new abap.types.Character(1, {}), "r3release": new abap.types.Character(10, {}), "clsproxy": new abap.types.Character(1, {})}, "VSEOINTERF", "VSEOINTERF", {}, {}); let lv_xml = new abap.types.String({qualifiedName: "STRING"}); let lo_input = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_XML_INPUT", RTTIName: "\\CLASS=ZCL_ABAPGIT_XML_INPUT"}); lv_xml.set(abap.operators.concat(new abap.types.String().set(`<?xml version="1.0" encoding="utf-8"?>\n`),abap.operators.concat(new abap.types.String().set(`<abapGit version="v1.0.0" serializer="LCL_OBJECT_INTF" serializer_version="v1.0.0">\n`),abap.operators.concat(new abap.types.String().set(` <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">\n`),abap.operators.concat(new abap.types.String().set(` <asx:values>\n`),abap.operators.concat(new abap.types.String().set(` <VSEOINTERF>\n`),abap.operators.concat(new abap.types.String().set(` <CLSNAME>ZIF_ABAPGIT_UNIT_TEST</CLSNAME>\n`),abap.operators.concat(new abap.types.String().set(` <LANGU>E</LANGU>\n`),abap.operators.concat(new abap.types.String().set(` <DESCRIPT>test</DESCRIPT>\n`),abap.operators.concat(new abap.types.String().set(` <EXPOSURE>2</EXPOSURE>\n`),abap.operators.concat(new abap.types.String().set(` <STATE>1</STATE>\n`),abap.operators.concat(new abap.types.String().set(` <UNICODE>X</UNICODE>\n`),abap.operators.concat(new abap.types.String().set(` </VSEOINTERF>\n`),abap.operators.concat(new abap.types.String().set(` </asx:values>\n`),abap.operators.concat(new abap.types.String().set(` </asx:abap>\n`),new abap.types.String().set(`</abapGit>`)))))))))))))))); lo_input.set(await (new abap.Classes['ZCL_ABAPGIT_XML_INPUT']()).constructor_({iv_xml: lv_xml})); await lo_input.get().zif_abapgit_xml_input$read({iv_name: abap.CharacterFactory.get(10, 'VSEOINTERF'), cg_data: ls_vseointerf}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_vseointerf.get().langu, exp: abap.CharacterFactory.get(1, 'E')}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_vseointerf.get().descript, exp: abap.CharacterFactory.get(4, 'test')}); } } abap.Classes['CLAS-ZCL_ABAPGIT_XML_INPUT-LTCL_XML'] = ltcl_xml; ltcl_xml.ty_old = new abap.types.Structure({ "foo": new abap.types.Integer({qualifiedName: "LTCL_XML=>TY_OLD-FOO"}), "bar": new abap.types.Character(1, {"qualifiedName":"ltcl_xml=>ty_old-bar"})}, "ltcl_xml=>ty_old", undefined, {}, {}); ltcl_xml.ty_new = new abap.types.Structure({ "foo": new abap.types.Integer({qualifiedName: "LTCL_XML=>TY_NEW-FOO"}), "bar": new abap.types.Character(1, {"qualifiedName":"ltcl_xml=>ty_new-bar"}), "moo": new abap.types.Float({qualifiedName: "LTCL_XML=>TY_NEW-MOO"})}, "ltcl_xml=>ty_new", undefined, {}, {}); export {ltcl_xml}; |