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 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 1x 2x 2x 2x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 1x 2x 2x 2x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 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 | const {zcl_abapgit_gui_utils} = await import("./zcl_abapgit_gui_utils.clas.mjs"); const {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_gui_utils.clas.testclasses.abap class lcl_renderable { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_GUI_UTILS-LCL_RENDERABLE'; static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_GUI_RENDERABLE"]; static ATTRIBUTES = {}; static METHODS = {}; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { }; } async constructor_(INPUT) { if (super.constructor_) { await super.constructor_(INPUT); } return this; } async zif_abapgit_gui_renderable$render() { let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"}); return ri_html; } } abap.Classes['CLAS-ZCL_ABAPGIT_GUI_UTILS-LCL_RENDERABLE'] = lcl_renderable; class lcl_handler { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_GUI_UTILS-LCL_HANDLER'; static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_GUI_EVENT_HANDLER"]; static ATTRIBUTES = {}; static METHODS = {}; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { }; } async constructor_(INPUT) { if (super.constructor_) { await super.constructor_(INPUT); } return this; } async zif_abapgit_gui_event_handler$on_event(INPUT) { let rs_handled = new abap.types.Structure({ "page": new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"}), "state": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_GUI_EVENT_HANDLER=>TY_HANDLING_RESULT-STATE"})}, "zif_abapgit_gui_event_handler=>ty_handling_result", undefined, {}, {}); let ii_event = INPUT?.ii_event; if (ii_event?.getQualifiedName === undefined || ii_event.getQualifiedName() !== "ZIF_ABAPGIT_GUI_EVENT") { ii_event = undefined; } if (ii_event === undefined) { ii_event = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_EVENT", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_EVENT"}).set(INPUT.ii_event); } return rs_handled; } } abap.Classes['CLAS-ZCL_ABAPGIT_GUI_UTILS-LCL_HANDLER'] = lcl_handler; class ltcl_gui_utils { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_GUI_UTILS-LTCL_GUI_UTILS'; static IMPLEMENTED_INTERFACES = []; static ATTRIBUTES = {}; static METHODS = {"IS_RENDERABLE": {"visibility": "I", "parameters": {}}, "IS_EVENT_HANDLER": {"visibility": "I", "parameters": {}}}; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { "is_renderable": this.#is_renderable.bind(this), "is_event_handler": this.#is_event_handler.bind(this), }; } async constructor_(INPUT) { if (super.constructor_) { await super.constructor_(INPUT); } return this; } async #is_renderable() { let lo_handler = new abap.types.ABAPObject({qualifiedName: "LCL_HANDLER", RTTIName: "\\CLASS-POOL=ZCL_ABAPGIT_GUI_UTILS\\CLASS=LCL_HANDLER"}); let lo_renderable = new abap.types.ABAPObject({qualifiedName: "LCL_RENDERABLE", RTTIName: "\\CLASS-POOL=ZCL_ABAPGIT_GUI_UTILS\\CLASS=LCL_RENDERABLE"}); lo_handler.set(await (new abap.Classes['CLAS-ZCL_ABAPGIT_GUI_UTILS-LCL_HANDLER']()).constructor_()); lo_renderable.set(await (new abap.Classes['CLAS-ZCL_ABAPGIT_GUI_UTILS-LCL_RENDERABLE']()).constructor_()); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({exp: abap.builtin.abap_true, act: (await abap.Classes['ZCL_ABAPGIT_GUI_UTILS'].is_renderable({io_obj: lo_renderable}))}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({exp: abap.builtin.abap_false, act: (await abap.Classes['ZCL_ABAPGIT_GUI_UTILS'].is_renderable({io_obj: lo_handler}))}); } async #is_event_handler() { let lo_handler = new abap.types.ABAPObject({qualifiedName: "LCL_HANDLER", RTTIName: "\\CLASS-POOL=ZCL_ABAPGIT_GUI_UTILS\\CLASS=LCL_HANDLER"}); let lo_renderable = new abap.types.ABAPObject({qualifiedName: "LCL_RENDERABLE", RTTIName: "\\CLASS-POOL=ZCL_ABAPGIT_GUI_UTILS\\CLASS=LCL_RENDERABLE"}); lo_handler.set(await (new abap.Classes['CLAS-ZCL_ABAPGIT_GUI_UTILS-LCL_HANDLER']()).constructor_()); lo_renderable.set(await (new abap.Classes['CLAS-ZCL_ABAPGIT_GUI_UTILS-LCL_RENDERABLE']()).constructor_()); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({exp: abap.builtin.abap_false, act: (await abap.Classes['ZCL_ABAPGIT_GUI_UTILS'].is_event_handler({io_obj: lo_renderable}))}); await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({exp: abap.builtin.abap_true, act: (await abap.Classes['ZCL_ABAPGIT_GUI_UTILS'].is_event_handler({io_obj: lo_handler}))}); } } abap.Classes['CLAS-ZCL_ABAPGIT_GUI_UTILS-LTCL_GUI_UTILS'] = ltcl_gui_utils; export {lcl_renderable, lcl_handler, ltcl_gui_utils}; |