All files / output zcl_abapgit_ui_injector.clas.testclasses.mjs

19.44% Statements 56/288
100% Branches 4/4
10.71% Functions 3/28
19.44% Lines 56/288

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 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 2881x 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 1x 1x
const {zcl_abapgit_ui_injector} = await import("./zcl_abapgit_ui_injector.clas.mjs");
const {lcl_gui_services_dummy} = await import("./zcl_abapgit_ui_injector.clas.locals.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_ui_injector.clas.testclasses.abap
class ltcl_abapgit_popups_mock {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_UI_INJECTOR-LTCL_ABAPGIT_POPUPS_MOCK';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_POPUPS"];
  static ATTRIBUTES = {"ZIF_ABAPGIT_POPUPS~C_NEW_BRANCH_LABEL": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
    };
    this.zif_abapgit_popups$c_new_branch_label = abap.Classes['ZIF_ABAPGIT_POPUPS'].zif_abapgit_popups$c_new_branch_label;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async zif_abapgit_popups$branch_list_popup(INPUT) {
    let rs_branch = new abap.types.Structure({
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-NAME"}),
    "type": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_git_definitions=>ty_git_branch_type"}),
    "is_head": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-DISPLAY_NAME"})}, "zif_abapgit_git_definitions=>ty_git_branch", undefined, {}, {});
    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_default_branch = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_default_branch) {iv_default_branch.set(INPUT.iv_default_branch);}
    let iv_show_new_option = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_show_new_option) {iv_show_new_option.set(INPUT.iv_show_new_option);}
    let iv_hide_branch = new abap.types.String({qualifiedName: "ZIF_ABAPGIT_PERSISTENCE=>TY_REPO_XML-BRANCH_NAME"});
    if (INPUT && INPUT.iv_hide_branch) {iv_hide_branch.set(INPUT.iv_hide_branch);}
    let iv_hide_head = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_hide_head) {iv_hide_head.set(INPUT.iv_hide_head);}
    return rs_branch;
  }
  async zif_abapgit_popups$commit_list_popup(INPUT) {
    let rs_commit = new abap.types.Structure({
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "parent1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "parent2": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "author": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-AUTHOR"}),
    "email": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-EMAIL"}),
    "time": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-TIME"}),
    "message": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MESSAGE"}),
    "body": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-body"),
    "branch": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-BRANCH"}),
    "merge": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MERGE"}),
    "tags": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-tags"),
    "create": abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-NAME"}),
    "parent": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-PARENT"})}, "zif_abapgit_git_definitions=>ty_create", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-create"),
    "compressed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_git_definitions=>ty_commit", undefined, {}, {});
    let iv_repo_url = INPUT?.iv_repo_url;
    if (iv_repo_url?.getQualifiedName === undefined || iv_repo_url.getQualifiedName() !== "STRING") { iv_repo_url = undefined; }
    if (iv_repo_url === undefined) { iv_repo_url = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_repo_url); }
    let iv_branch_name = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_branch_name) {iv_branch_name.set(INPUT.iv_branch_name);}
    return rs_commit;
  }
  async zif_abapgit_popups$create_branch_popup(INPUT) {
    let iv_source_branch_name = INPUT?.iv_source_branch_name;
    if (iv_source_branch_name?.getQualifiedName === undefined || iv_source_branch_name.getQualifiedName() !== "STRING") { iv_source_branch_name = undefined; }
    if (iv_source_branch_name === undefined) { iv_source_branch_name = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_source_branch_name); }
    let ev_name = INPUT?.ev_name || new abap.types.String({qualifiedName: "STRING"});
    let ev_cancel = INPUT?.ev_cancel || new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
  }
  async zif_abapgit_popups$popup_folder_logic() {
    let rv_folder_logic = new abap.types.String({qualifiedName: "STRING"});
    return rv_folder_logic;
  }
  async zif_abapgit_popups$popup_to_confirm(INPUT) {
    let rv_answer = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_popups=>ty_char1"});
    let iv_titlebar = INPUT?.iv_titlebar;
    let iv_text_question = INPUT?.iv_text_question;
    let iv_text_button_1 = INPUT?.iv_text_button_1 || new abap.types.Character();
    if (INPUT === undefined || INPUT.iv_text_button_1 === undefined) {iv_text_button_1 = abap.CharacterFactory.get(3, 'Yes');}
    let iv_icon_button_1 = new abap.types.Character(30, {"qualifiedName":"zif_abapgit_popups=>ty_icon"});
    if (INPUT && INPUT.iv_icon_button_1) {iv_icon_button_1.set(INPUT.iv_icon_button_1);}
    if (INPUT === undefined || INPUT.iv_icon_button_1 === undefined) {iv_icon_button_1 = abap.builtin.space;}
    let iv_text_button_2 = INPUT?.iv_text_button_2 || new abap.types.Character();
    if (INPUT === undefined || INPUT.iv_text_button_2 === undefined) {iv_text_button_2 = abap.CharacterFactory.get(2, 'No');}
    let iv_icon_button_2 = new abap.types.Character(30, {"qualifiedName":"zif_abapgit_popups=>ty_icon"});
    if (INPUT && INPUT.iv_icon_button_2) {iv_icon_button_2.set(INPUT.iv_icon_button_2);}
    if (INPUT === undefined || INPUT.iv_icon_button_2 === undefined) {iv_icon_button_2 = abap.builtin.space;}
    let iv_default_button = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_popups=>ty_char1"});
    if (INPUT && INPUT.iv_default_button) {iv_default_button.set(INPUT.iv_default_button);}
    if (INPUT === undefined || INPUT.iv_default_button === undefined) {iv_default_button = abap.CharacterFactory.get(1, '1');}
    let iv_display_cancel_button = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_popups=>ty_char1"});
    if (INPUT && INPUT.iv_display_cancel_button) {iv_display_cancel_button.set(INPUT.iv_display_cancel_button);}
    if (INPUT === undefined || INPUT.iv_display_cancel_button === undefined) {iv_display_cancel_button = abap.builtin.abap_true;}
    let iv_popup_type = INPUT?.iv_popup_type || new abap.types.Character();
    if (INPUT === undefined || INPUT.iv_popup_type === undefined) {iv_popup_type = abap.CharacterFactory.get(21, 'ICON_MESSAGE_QUESTION');}
    return rv_answer;
  }
  async zif_abapgit_popups$popup_to_create_transp_branch(INPUT) {
    let rs_transport_branch = new abap.types.Structure({
    "branch_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TRANSPORT_TO_BRANCH-BRANCH_NAME"}),
    "commit_text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TRANSPORT_TO_BRANCH-COMMIT_TEXT"})}, "zif_abapgit_definitions=>ty_transport_to_branch", undefined, {}, {});
    let iv_trkorr = INPUT?.iv_trkorr;
    if (iv_trkorr?.getQualifiedName === undefined || iv_trkorr.getQualifiedName() !== "TRKORR") { iv_trkorr = undefined; }
    if (iv_trkorr === undefined) { iv_trkorr = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}).set(INPUT.iv_trkorr); }
    return rs_transport_branch;
  }
  async zif_abapgit_popups$popup_to_select_from_list(INPUT) {
    let it_list = INPUT?.it_list;
    let iv_title = new abap.types.Character(70, {"qualifiedName":"LVC_TITLE","ddicName":"LVC_TITLE","description":"LVC_TITLE"});
    if (INPUT && INPUT.iv_title) {iv_title.set(INPUT.iv_title);}
    if (INPUT === undefined || INPUT.iv_title === undefined) {iv_title = abap.builtin.space;}
    let iv_header_text = INPUT?.iv_header_text || new abap.types.Character();
    if (INPUT === undefined || INPUT.iv_header_text === undefined) {iv_header_text = abap.builtin.space;}
    let iv_start_column = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.iv_start_column) {iv_start_column.set(INPUT.iv_start_column);}
    if (INPUT === undefined || INPUT.iv_start_column === undefined) {iv_start_column = abap.IntegerFactory.get(10);}
    let iv_end_column = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.iv_end_column) {iv_end_column.set(INPUT.iv_end_column);}
    if (INPUT === undefined || INPUT.iv_end_column === undefined) {iv_end_column = abap.IntegerFactory.get(125);}
    let iv_start_line = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.iv_start_line) {iv_start_line.set(INPUT.iv_start_line);}
    if (INPUT === undefined || INPUT.iv_start_line === undefined) {iv_start_line = abap.IntegerFactory.get(10);}
    let iv_end_line = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.iv_end_line) {iv_end_line.set(INPUT.iv_end_line);}
    if (INPUT === undefined || INPUT.iv_end_line === undefined) {iv_end_line = abap.IntegerFactory.get(30);}
    let iv_striped_pattern = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_striped_pattern) {iv_striped_pattern.set(INPUT.iv_striped_pattern);}
    if (INPUT === undefined || INPUT.iv_striped_pattern === undefined) {iv_striped_pattern = abap.builtin.abap_false;}
    let iv_optimize_col_width = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_optimize_col_width) {iv_optimize_col_width.set(INPUT.iv_optimize_col_width);}
    if (INPUT === undefined || INPUT.iv_optimize_col_width === undefined) {iv_optimize_col_width = abap.builtin.abap_true;}
    let iv_selection_mode = (() => { throw new Error("Void type: SALV_DE_CONSTANT") })();
    if (INPUT && INPUT.iv_selection_mode) {iv_selection_mode.set(INPUT.iv_selection_mode);}
    if (INPUT === undefined || INPUT.iv_selection_mode === undefined) {iv_selection_mode = abap.Classes['IF_SALV_C_SELECTION_MODE'].if_salv_c_selection_mode$multiple;}
    let iv_select_column_text = INPUT?.iv_select_column_text || new abap.types.Character();
    if (INPUT === undefined || INPUT.iv_select_column_text === undefined) {iv_select_column_text = abap.builtin.space;}
    let it_columns_to_display = INPUT?.it_columns_to_display;
    if (it_columns_to_display?.getQualifiedName === undefined || it_columns_to_display.getQualifiedName() !== "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN_TT") { it_columns_to_display = undefined; }
    if (it_columns_to_display === undefined) { it_columns_to_display = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-NAME"}),
    "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-TEXT"}),
    "length": (() => { throw new Error("Void type: LVC_OUTLEN") })(),
    "show_icon": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "center": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_popups=>ty_alv_column", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_popups=>ty_alv_column_tt").set(INPUT.it_columns_to_display); }
    let it_preselected_rows = abap.types.TableFactory.construct(new abap.types.Integer({qualifiedName: "I"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["TABLE_LINE"]},"secondary":[]}, "zif_abapgit_popups=>ty_rows");
    if (INPUT && INPUT.it_preselected_rows) {it_preselected_rows.set(INPUT.it_preselected_rows);}
    let et_list = INPUT?.et_list || abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"DEFAULT"});
  }
  async zif_abapgit_popups$popup_to_select_transport() {
    let rv_trkorr = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"});
    return rv_trkorr;
  }
  async zif_abapgit_popups$popup_transport_request(INPUT) {
    let rv_transport = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"});
    let is_transport_type = new abap.types.Structure({
    "request": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"}),
    "task": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"})}, "zif_abapgit_definitions=>ty_transport_type", undefined, {}, {});
    if (INPUT && INPUT.is_transport_type) {is_transport_type.set(INPUT.is_transport_type);}
    let iv_use_default_transport = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_use_default_transport) {iv_use_default_transport.set(INPUT.iv_use_default_transport);}
    if (INPUT === undefined || INPUT.iv_use_default_transport === undefined) {iv_use_default_transport = abap.builtin.abap_false;}
    return rv_transport;
  }
  async zif_abapgit_popups$popup_search_help(INPUT) {
    let rv_value = (() => { throw new Error("Void type: DDSHRETVAL") })();
    let iv_tab_field = INPUT?.iv_tab_field;
    if (iv_tab_field?.getQualifiedName === undefined || iv_tab_field.getQualifiedName() !== "STRING") { iv_tab_field = undefined; }
    if (iv_tab_field === undefined) { iv_tab_field = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_tab_field); }
    return rv_value;
  }
  async zif_abapgit_popups$popup_select_tr_requests(INPUT) {
    let rt_r_trkorr = abap.types.TableFactory.construct(new abap.types.Structure({
    "sign": new abap.types.Character(1, undefined),
    "option": new abap.types.Character(2, undefined),
    "low": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}),
    "high": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, undefined, undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_trrngtrkor_tt");
    let is_selection = INPUT?.is_selection;
    if (is_selection === undefined) { is_selection = (() => { throw new Error("Void type: TRWBO_SELECTION") })().set(INPUT.is_selection); }
    let iv_title = INPUT?.iv_title;
    if (iv_title === undefined) { iv_title = (() => { throw new Error("Void type: TRWBO_TITLE") })().set(INPUT.iv_title); }
    let iv_username_pattern = INPUT?.iv_username_pattern || new abap.types.Character(4);
    if (INPUT === undefined || INPUT.iv_username_pattern === undefined) {iv_username_pattern = abap.builtin.sy.get().uname;}
    return rt_r_trkorr;
  }
  async zif_abapgit_popups$popup_select_wb_tc_tr_and_tsk() {
    let rt_r_trkorr = abap.types.TableFactory.construct(new abap.types.Structure({
    "sign": new abap.types.Character(1, undefined),
    "option": new abap.types.Character(2, undefined),
    "low": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}),
    "high": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, undefined, undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_trrngtrkor_tt");
    return rt_r_trkorr;
  }
  async zif_abapgit_popups$tag_list_popup(INPUT) {
    let rs_tag = new abap.types.Structure({
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "object": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-NAME"}),
    "type": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_git_definitions=>ty_git_branch_type"}),
    "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-DISPLAY_NAME"}),
    "tagger_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-TAGGER_NAME"}),
    "tagger_email": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-TAGGER_EMAIL"}),
    "message": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-MESSAGE"}),
    "body": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-BODY"})}, "zif_abapgit_git_definitions=>ty_git_tag", undefined, {}, {});
    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); }
    return rs_tag;
  }
  async zif_abapgit_popups$popup_to_select_labels(INPUT) {
    let rv_labels = new abap.types.String({qualifiedName: "STRING"});
    let iv_labels = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_labels) {iv_labels.set(INPUT.iv_labels);}
    return rv_labels;
  }
  async zif_abapgit_popups$choose_code_insp_check_variant() {
    let rv_check_variant = new abap.types.Character(30, {"qualifiedName":"SCI_CHKV","ddicName":"SCI_CHKV","description":"SCI_CHKV"});
    return rv_check_variant;
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_UI_INJECTOR-LTCL_ABAPGIT_POPUPS_MOCK'] = ltcl_abapgit_popups_mock;
ltcl_abapgit_popups_mock.zif_abapgit_popups$c_new_branch_label = new abap.types.String({qualifiedName: "STRING"});
ltcl_abapgit_popups_mock.zif_abapgit_popups$c_new_branch_label.set('+ create new ...');
class ltcl_no_dependency_injection {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_UI_INJECTOR-LTCL_NO_DEPENDENCY_INJECTION';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"NO_INJECTION": {"visibility": "I", "parameters": {}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "no_injection": this.#no_injection.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async #no_injection() {
    let li_popups = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_POPUPS", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_POPUPS"});
    let lo_class_descr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_CLASSDESCR", RTTIName: "\\CLASS=CL_ABAP_CLASSDESCR"});
    li_popups.set((await abap.Classes['ZCL_ABAPGIT_UI_FACTORY'].get_popups()));
    await abap.statements.cast(lo_class_descr, (await abap.Classes['CL_ABAP_CLASSDESCR'].describe_by_object_ref({p_object_ref: li_popups})));
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({exp: abap.CharacterFactory.get(25, '\\CLASS=ZCL_ABAPGIT_POPUPS'), act: lo_class_descr.get().absolute_name});
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_UI_INJECTOR-LTCL_NO_DEPENDENCY_INJECTION'] = ltcl_no_dependency_injection;
class ltcl_simple_dependency_inject {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_UI_INJECTOR-LTCL_SIMPLE_DEPENDENCY_INJECT';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"SETUP": {"visibility": "I", "parameters": {}},
  "SIMPLE_INJECTION": {"visibility": "I", "parameters": {}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "setup": this.#setup.bind(this),
      "simple_injection": this.#simple_injection.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async #setup() {
    let lo_popups_mock = new abap.types.ABAPObject({qualifiedName: "LTCL_ABAPGIT_POPUPS_MOCK", RTTIName: "\\CLASS-POOL=ZCL_ABAPGIT_UI_INJECTOR\\CLASS=LTCL_ABAPGIT_POPUPS_MOCK"});
    lo_popups_mock.set(await (new abap.Classes['CLAS-ZCL_ABAPGIT_UI_INJECTOR-LTCL_ABAPGIT_POPUPS_MOCK']()).constructor_());
    await abap.Classes['ZCL_ABAPGIT_UI_INJECTOR'].set_popups({ii_popups: lo_popups_mock});
  }
  async #simple_injection() {
    let li_popups = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_POPUPS", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_POPUPS"});
    let lo_class_descr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_CLASSDESCR", RTTIName: "\\CLASS=CL_ABAP_CLASSDESCR"});
    li_popups.set((await abap.Classes['ZCL_ABAPGIT_UI_FACTORY'].get_popups()));
    await abap.statements.cast(lo_class_descr, (await abap.Classes['CL_ABAP_CLASSDESCR'].describe_by_object_ref({p_object_ref: li_popups})));
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({exp: abap.CharacterFactory.get(66, '\\CLASS-POOL=ZCL_ABAPGIT_UI_INJECTOR\\CLASS=LTCL_ABAPGIT_POPUPS_MOCK'), act: lo_class_descr.get().absolute_name});
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_UI_INJECTOR-LTCL_SIMPLE_DEPENDENCY_INJECT'] = ltcl_simple_dependency_inject;
export {ltcl_abapgit_popups_mock, ltcl_no_dependency_injection, ltcl_simple_dependency_inject};