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 | 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_sotr_handler} = await import("./zcl_abapgit_sotr_handler.clas.mjs"); const {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_sotr_handler.clas.testclasses.abap class ltcl_sotr_handler { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_SOTR_HANDLER-LTCL_SOTR_HANDLER'; static IMPLEMENTED_INTERFACES = []; static ATTRIBUTES = {}; static METHODS = {"IS_WD_COMPONENT_EXISTING": {"visibility": "I", "parameters": {"RV_IS_WD_COMPONENT_EXISTING": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_COMPONENT_NAME": {"type": () => {return new abap.types.Character(40, {"qualifiedName":"SOBJ_NAME","ddicName":"SOBJ_NAME","description":"SOBJ_NAME"});}, "is_optional": " "}}}, "SOTR_WDA_0001": {"visibility": "I", "parameters": {}}, "SOTR_WDA_0003_NOT_EXIST": {"visibility": "I", "parameters": {}}, "SOTR_WDA_0004": {"visibility": "I", "parameters": {}}, "SOTR_CX_0002": {"visibility": "I", "parameters": {}}}; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { "is_wd_component_existing": this.#is_wd_component_existing.bind(this), "sotr_wda_0001": this.#sotr_wda_0001.bind(this), "sotr_wda_0003_not_exist": this.#sotr_wda_0003_not_exist.bind(this), "sotr_wda_0004": this.#sotr_wda_0004.bind(this), "sotr_cx_0002": this.#sotr_cx_0002.bind(this), }; } async constructor_(INPUT) { if (super.constructor_) { await super.constructor_(INPUT); } return this; } async #is_wd_component_existing(INPUT) { let rv_is_wd_component_existing = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); let iv_component_name = INPUT?.iv_component_name; if (iv_component_name?.getQualifiedName === undefined || iv_component_name.getQualifiedName() !== "SOBJ_NAME") { iv_component_name = undefined; } if (iv_component_name === undefined) { iv_component_name = new abap.types.Character(40, {"qualifiedName":"SOBJ_NAME","ddicName":"SOBJ_NAME","description":"SOBJ_NAME"}).set(INPUT.iv_component_name); } let ls_repository = (() => { throw new Error("Void type: WDY_RR_CLUSTER") })(); let lv_component_name = new abap.types.String({qualifiedName: "STRING"}); lv_component_name.set(iv_component_name); try { if (abap.FunctionModules['WDR_REPOSITORY_INFO'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} } await abap.FunctionModules['WDR_REPOSITORY_INFO']({exporting: {component_name: lv_component_name, extended_read: abap.builtin.abap_true}, importing: {repository: ls_repository}}); if (abap.compare.initial(ls_repository) === false) { rv_is_wd_component_existing.set(abap.builtin.abap_true); } } catch (e) { if ((abap.Classes['CX_WDR_RR_EXCEPTION'] && e instanceof abap.Classes['CX_WDR_RR_EXCEPTION'])) { } else { throw e; } } return rv_is_wd_component_existing; } async #sotr_wda_0001() { let lc_wd_component_name = new abap.types.Character(40, {"qualifiedName":"SOBJ_NAME","ddicName":"SOBJ_NAME","description":"SOBJ_NAME"}); lc_wd_component_name.set('SALV_WD_TEST_TABLE_SIMPLE'); let lt_sotr = abap.types.TableFactory.construct(new abap.types.Structure({ "header": (() => { throw new Error("Void type: SOTR_HEAD") })(), "entries": (() => { throw new Error("Void type: SOTR_TEXT_TT") })()}, "zcl_abapgit_sotr_handler=>ty_sotr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_sotr_handler=>ty_sotr_tt"); if (abap.compare.eq((await this.#is_wd_component_existing({iv_component_name: lc_wd_component_name})), abap.builtin.abap_true)) { try { await abap.Classes['ZCL_ABAPGIT_SOTR_HANDLER'].read_sotr({iv_pgmid: abap.CharacterFactory.get(4, 'LIMU'), iv_object: abap.CharacterFactory.get(4, 'WDYV'), iv_obj_name: lc_wd_component_name, io_i18n_params: (await abap.Classes['ZCL_ABAPGIT_I18N_PARAMS'].new()), et_sotr: lt_sotr}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_not_initial({act: lt_sotr}); } catch (e) { if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) { await abap.Classes['CL_ABAP_UNIT_ASSERT'].fail({quit: abap.Classes['IF_AUNIT_CONSTANTS'].if_aunit_constants$method}); } else { throw e; } } } } async #sotr_wda_0003_not_exist() { let lc_wd_not_exist_component_name = new abap.types.Character(40, {"qualifiedName":"SOBJ_NAME","ddicName":"SOBJ_NAME","description":"SOBJ_NAME"}); lc_wd_not_exist_component_name.set('_NOT_EXISTING'); let lt_sotr = abap.types.TableFactory.construct(new abap.types.Structure({ "header": (() => { throw new Error("Void type: SOTR_HEAD") })(), "entries": (() => { throw new Error("Void type: SOTR_TEXT_TT") })()}, "zcl_abapgit_sotr_handler=>ty_sotr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_sotr_handler=>ty_sotr_tt"); if (abap.compare.ne((await this.#is_wd_component_existing({iv_component_name: lc_wd_not_exist_component_name})), abap.builtin.abap_true)) { try { await abap.Classes['ZCL_ABAPGIT_SOTR_HANDLER'].read_sotr({iv_pgmid: abap.CharacterFactory.get(4, 'LIMU'), iv_object: abap.CharacterFactory.get(4, 'WDYV'), iv_obj_name: lc_wd_not_exist_component_name, io_i18n_params: (await abap.Classes['ZCL_ABAPGIT_I18N_PARAMS'].new()), et_sotr: lt_sotr}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_initial({act: lt_sotr}); } catch (e) { if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) { await abap.Classes['CL_ABAP_UNIT_ASSERT'].fail({quit: abap.Classes['IF_AUNIT_CONSTANTS'].if_aunit_constants$method}); } else { throw e; } } } } async #sotr_wda_0004() { let lc_wd_component_name = new abap.types.Character(40, {"qualifiedName":"SOBJ_NAME","ddicName":"SOBJ_NAME","description":"SOBJ_NAME"}); lc_wd_component_name.set('SALV_WD_TEST_TABLE_SELECT'); let lt_sotr = abap.types.TableFactory.construct(new abap.types.Structure({ "header": (() => { throw new Error("Void type: SOTR_HEAD") })(), "entries": (() => { throw new Error("Void type: SOTR_TEXT_TT") })()}, "zcl_abapgit_sotr_handler=>ty_sotr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_sotr_handler=>ty_sotr_tt"); if (abap.compare.eq((await this.#is_wd_component_existing({iv_component_name: lc_wd_component_name})), abap.builtin.abap_true)) { try { await abap.Classes['ZCL_ABAPGIT_SOTR_HANDLER'].read_sotr({iv_pgmid: abap.CharacterFactory.get(4, 'LIMU'), iv_object: abap.CharacterFactory.get(4, 'WDYV'), iv_obj_name: lc_wd_component_name, io_i18n_params: (await abap.Classes['ZCL_ABAPGIT_I18N_PARAMS'].new()), et_sotr: lt_sotr}); if (abap.compare.lt(abap.builtin.lines({val: lt_sotr}), abap.IntegerFactory.get(50))) { await abap.Classes['CL_ABAP_UNIT_ASSERT'].fail({quit: abap.Classes['IF_AUNIT_CONSTANTS'].if_aunit_constants$method}); } } catch (e) { if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) { await abap.Classes['CL_ABAP_UNIT_ASSERT'].fail({quit: abap.Classes['IF_AUNIT_CONSTANTS'].if_aunit_constants$method}); } else { throw e; } } } } async #sotr_cx_0002() { let lt_sotr = abap.types.TableFactory.construct(new abap.types.Structure({ "header": (() => { throw new Error("Void type: SOTR_HEAD") })(), "entries": (() => { throw new Error("Void type: SOTR_TEXT_TT") })()}, "zcl_abapgit_sotr_handler=>ty_sotr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_sotr_handler=>ty_sotr_tt"); try { await abap.Classes['ZCL_ABAPGIT_SOTR_HANDLER'].read_sotr({iv_pgmid: abap.CharacterFactory.get(4, 'LIMU'), iv_object: abap.CharacterFactory.get(4, 'CPUB'), iv_obj_name: abap.CharacterFactory.get(20, 'CX_ABAP_INVALID_NAME'), io_i18n_params: (await abap.Classes['ZCL_ABAPGIT_I18N_PARAMS'].new()), et_sotr: lt_sotr}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_not_initial({act: lt_sotr}); } catch (e) { if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) { await abap.Classes['CL_ABAP_UNIT_ASSERT'].fail({quit: abap.Classes['IF_AUNIT_CONSTANTS'].if_aunit_constants$method}); } else { throw e; } } } } abap.Classes['CLAS-ZCL_ABAPGIT_SOTR_HANDLER-LTCL_SOTR_HANDLER'] = ltcl_sotr_handler; export {ltcl_sotr_handler}; |