All files / output zcl_abapgit_ui_injector.clas.locals.mjs

28.2% Statements 22/78
100% Branches 2/2
7.69% Functions 1/13
28.2% Lines 22/78

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 781x 1x 1x 1x 1x 1x 1x 1x 1x             1x       1x     1x         1x                       1x         1x       1x       1x       1x             1x                       1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_ui_injector.clas.locals_imp.abap
class lcl_gui_services_dummy {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_UI_INJECTOR-LCL_GUI_SERVICES_DUMMY';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_GUI_SERVICES"];
  static ATTRIBUTES = {};
  static METHODS = {"CREATE": {"visibility": "U", "parameters": {"RO_INSTANCE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "LCL_GUI_SERVICES_DUMMY", RTTIName: "\\CLASS-POOL=ZCL_ABAPGIT_UI_INJECTOR\\CLASS=LCL_GUI_SERVICES_DUMMY"});}, "is_optional": " "}}}};
  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 create() {
    return lcl_gui_services_dummy.create();
  }
  static async create() {
    let ro_instance = new abap.types.ABAPObject({qualifiedName: "LCL_GUI_SERVICES_DUMMY", RTTIName: "\\CLASS-POOL=ZCL_ABAPGIT_UI_INJECTOR\\CLASS=LCL_GUI_SERVICES_DUMMY"});
    ro_instance.set(await (new abap.Classes['CLAS-ZCL_ABAPGIT_UI_INJECTOR-LCL_GUI_SERVICES_DUMMY']()).constructor_());
    return ro_instance;
  }
  async zif_abapgit_gui_services$cache_asset(INPUT) {
    let rv_url = new abap.types.String({qualifiedName: "STRING"});
    let iv_text = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_text) {iv_text.set(INPUT.iv_text);}
    let iv_xdata = new abap.types.XString({qualifiedName: "XSTRING"});
    if (INPUT && INPUT.iv_xdata) {iv_xdata.set(INPUT.iv_xdata);}
    let iv_url = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_url) {iv_url.set(INPUT.iv_url);}
    let iv_type = INPUT?.iv_type;
    let iv_subtype = INPUT?.iv_subtype;
    return rv_url;
  }
  async zif_abapgit_gui_services$register_event_handler(INPUT) {
    let ii_event_handler = INPUT?.ii_event_handler;
    if (ii_event_handler?.getQualifiedName === undefined || ii_event_handler.getQualifiedName() !== "ZIF_ABAPGIT_GUI_EVENT_HANDLER") { ii_event_handler = undefined; }
    if (ii_event_handler === undefined) { ii_event_handler = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_EVENT_HANDLER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_EVENT_HANDLER"}).set(INPUT.ii_event_handler); }
  }
  async zif_abapgit_gui_services$get_current_page_name() {
    let rv_page_name = new abap.types.String({qualifiedName: "STRING"});
    return rv_page_name;
  }
  async zif_abapgit_gui_services$get_hotkeys_ctl() {
    let ri_hotkey_ctl = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEY_CTL", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_HOTKEY_CTL"});
    return ri_hotkey_ctl;
  }
  async zif_abapgit_gui_services$get_html_parts() {
    let ro_parts = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_PARTS", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_PARTS"});
    return ro_parts;
  }
  async zif_abapgit_gui_services$get_log(INPUT) {
    let ri_log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"});
    let iv_create_new = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_create_new) {iv_create_new.set(INPUT.iv_create_new);}
    if (INPUT === undefined || INPUT.iv_create_new === undefined) {iv_create_new = abap.builtin.abap_false;}
    return ri_log;
  }
  async zif_abapgit_gui_services$register_page_asset(INPUT) {
    let iv_url = INPUT?.iv_url;
    if (iv_url?.getQualifiedName === undefined || iv_url.getQualifiedName() !== "STRING") { iv_url = undefined; }
    if (iv_url === undefined) { iv_url = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_url); }
    let iv_type = INPUT?.iv_type;
    if (iv_type?.getQualifiedName === undefined || iv_type.getQualifiedName() !== "STRING") { iv_type = undefined; }
    if (iv_type === undefined) { iv_type = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_type); }
    let iv_mime_name = new abap.types.Character(40, {});
    if (INPUT && INPUT.iv_mime_name) {iv_mime_name.set(INPUT.iv_mime_name);}
    let iv_inline = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_inline) {iv_inline.set(INPUT.iv_inline);}
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_UI_INJECTOR-LCL_GUI_SERVICES_DUMMY'] = lcl_gui_services_dummy;
export {lcl_gui_services_dummy};