All files / output zcl_abapgit_objects.clas.testclasses.mjs

15.02% Statements 105/699
75% Branches 6/8
10% Functions 5/50
15.02% Lines 105/699

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 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 6991x 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                                                         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_objects} = await import("./zcl_abapgit_objects.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
const {zcl_abapgit_objects_super} = await import("./zcl_abapgit_objects_super.clas.mjs");
// zcl_abapgit_objects.clas.testclasses.abap
class ltcl_object_types {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_OBJECTS-LTCL_OBJECT_TYPES';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"TYPE_SUPPORTED": {"visibility": "I", "parameters": {}},
  "NOT_EXIST": {"visibility": "I", "parameters": {}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "type_supported": this.#type_supported.bind(this),
      "not_exist": this.#not_exist.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async #type_supported() {
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: (await abap.Classes['ZCL_ABAPGIT_OBJECTS'].is_type_supported({iv_obj_type: abap.CharacterFactory.get(4, 'PROG')})), exp: abap.builtin.abap_true});
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: (await abap.Classes['ZCL_ABAPGIT_OBJECTS'].is_type_supported({iv_obj_type: abap.CharacterFactory.get(4, 'ZXYZ')})), exp: abap.builtin.abap_false});
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: (await abap.Classes['ZCL_ABAPGIT_OBJECTS'].is_type_supported({iv_obj_type: abap.CharacterFactory.get(1, '')})), exp: abap.builtin.abap_false});
  }
  async #not_exist() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    let lv_exists = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let lt_types = abap.types.TableFactory.construct(new abap.types.Character(4, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["TABLE_LINE"]},"secondary":[]}, "zif_abapgit_objects=>ty_types_tt");
    let fs_lv_type_ = new abap.types.FieldSymbol(new abap.types.Character(4, {}));
    lt_types.set((await abap.Classes['ZCL_ABAPGIT_OBJECTS'].supported_list()));
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_not_initial({act: lt_types});
    for await (const unique511 of abap.statements.loop(lt_types)) {
      fs_lv_type_.assign(unique511);
      ls_item.clear();
      ls_item.get().obj_name.set(abap.CharacterFactory.get(15, 'ZABAPGIT_FOOBAR'));
      ls_item.get().obj_type.set(fs_lv_type_);
      lv_exists.set((await abap.Classes['ZCL_ABAPGIT_OBJECTS'].exists({is_item: ls_item})));
      await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: lv_exists, exp: abap.builtin.abap_false, msg: ls_item.get().obj_type, quit: abap.Classes['IF_AUNIT_CONSTANTS'].if_aunit_constants$no});
    }
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_OBJECTS-LTCL_OBJECT_TYPES'] = ltcl_object_types;
class lcl_settings_with_features {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_OBJECTS-LCL_SETTINGS_WITH_FEATURES';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_PERSIST_SETTINGS"];
  static ATTRIBUTES = {"MV_FEATURES": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "}};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"IV_FEATURES": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}};
  #mv_features;
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
    };
    this.#mv_features = new abap.types.String({qualifiedName: "STRING"});
    this.FRIENDS_ACCESS_INSTANCE["mv_features"] = this.#mv_features;
  }
  async zif_abapgit_persist_settings$modify(INPUT) {
    let io_settings = INPUT?.io_settings;
    if (io_settings?.getQualifiedName === undefined || io_settings.getQualifiedName() !== "ZCL_ABAPGIT_SETTINGS") { io_settings = undefined; }
    if (io_settings === undefined) { io_settings = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_SETTINGS", RTTIName: "\\CLASS=ZCL_ABAPGIT_SETTINGS"}).set(INPUT.io_settings); }
    return;
  }
  async zif_abapgit_persist_settings$read() {
    let ro_settings = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_SETTINGS", RTTIName: "\\CLASS=ZCL_ABAPGIT_SETTINGS"});
    ro_settings.set(await (new abap.Classes['ZCL_ABAPGIT_SETTINGS']()).constructor_());
    await ro_settings.get().set_experimental_features({iv_features: this.#mv_features});
    return ro_settings;
  }
  async constructor_(INPUT) {
    let iv_features = INPUT?.iv_features;
    if (iv_features?.getQualifiedName === undefined || iv_features.getQualifiedName() !== "STRING") { iv_features = undefined; }
    if (iv_features === undefined) { iv_features = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_features); }
    this.#mv_features.set(iv_features);
    return this;
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_OBJECTS-LCL_SETTINGS_WITH_FEATURES'] = lcl_settings_with_features;
class ltcl_serialize {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_OBJECTS-LTCL_SERIALIZE';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"CHECK": {"visibility": "I", "parameters": {"IS_ITEM": {"type": () => {return new abap.types.Structure({
  "obj_type": new abap.types.Character(4, {}),
  "obj_name": new abap.types.Character(40, {}),
  "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
  "srcsystem": new abap.types.Character(5, {}),
  "origlang": new abap.types.Character(1, {}),
  "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});}, "is_optional": " "}}},
  "SERIALIZE_TABL": {"visibility": "I", "parameters": {}},
  "SERIALIZE_SHLP": {"visibility": "I", "parameters": {}},
  "SERIALIZE_VIEW": {"visibility": "I", "parameters": {}},
  "SERIALIZE_AUTH": {"visibility": "I", "parameters": {}},
  "SERIALIZE_CLAS": {"visibility": "I", "parameters": {}},
  "SERIALIZE_INTF": {"visibility": "I", "parameters": {}},
  "SERIALIZE_DOMA": {"visibility": "I", "parameters": {}},
  "SERIALIZE_DTEL": {"visibility": "I", "parameters": {}},
  "SERIALIZE_FUGR": {"visibility": "I", "parameters": {}},
  "SERIALIZE_MSAG": {"visibility": "I", "parameters": {}},
  "SERIALIZE_PROG": {"visibility": "I", "parameters": {}},
  "SERIALIZE_TRAN": {"visibility": "I", "parameters": {}},
  "SERIALIZE_TTYP": {"visibility": "I", "parameters": {}},
  "SERIALIZE_INTF_AFF_TRANSLATE": {"visibility": "I", "parameters": {}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "check": this.#check.bind(this),
      "serialize_tabl": this.#serialize_tabl.bind(this),
      "serialize_shlp": this.#serialize_shlp.bind(this),
      "serialize_view": this.#serialize_view.bind(this),
      "serialize_auth": this.#serialize_auth.bind(this),
      "serialize_clas": this.#serialize_clas.bind(this),
      "serialize_intf": this.#serialize_intf.bind(this),
      "serialize_doma": this.#serialize_doma.bind(this),
      "serialize_dtel": this.#serialize_dtel.bind(this),
      "serialize_fugr": this.#serialize_fugr.bind(this),
      "serialize_msag": this.#serialize_msag.bind(this),
      "serialize_prog": this.#serialize_prog.bind(this),
      "serialize_tran": this.#serialize_tran.bind(this),
      "serialize_ttyp": this.#serialize_ttyp.bind(this),
      "serialize_intf_aff_translate": this.#serialize_intf_aff_translate.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async #serialize_shlp() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'SHLP'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(10, 'USER_LOGON'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_view() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'VIEW'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(13, 'VUSR02_HEADER'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_tabl() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'TABL'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(5, 'USR02'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_auth() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'AUTH'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(4, 'AREA'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_clas() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'CLAS'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(24, 'CL_GUI_FRONTEND_SERVICES'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_intf() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'INTF'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(21, 'IF_BADI_TADIR_CHANGED'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_intf_aff_translate() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    let lo_settings = new abap.types.ABAPObject({qualifiedName: "LCL_SETTINGS_WITH_FEATURES", RTTIName: "\\CLASS-POOL=ZCL_ABAPGIT_OBJECTS\\CLASS=LCL_SETTINGS_WITH_FEATURES"});
    let ls_act = new abap.types.Structure({
    "files": abap.types.TableFactory.construct(new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"file_path","type":"SORTED","isUnique":true,"keyFields":["PATH","FILENAME"]},{"name":"file","type":"SORTED","isUnique":false,"keyFields":["FILENAME"]}]}, "zif_abapgit_git_definitions=>ty_files_tt"),
    "item": new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {})}, "zif_abapgit_objects=>ty_serialization", undefined, {}, {});
    let ls_translation_de = new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {});
    let lt_target_langu = abap.types.TableFactory.construct(new abap.types.Character(2, {"qualifiedName":"LAISO","ddicName":"LAISO","description":"LAISO"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_languages");
    let lo_i18n_params = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_I18N_PARAMS", RTTIName: "\\CLASS=ZCL_ABAPGIT_I18N_PARAMS"});
    let lv_features = new abap.types.String({qualifiedName: "STRING"});
    let lv_filename = new abap.types.String({qualifiedName: "STRING"});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'INTF'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(21, 'IF_BADI_TADIR_CHANGED'));
    lv_features.set(new abap.types.String().set(`${abap.templateFormatting(abap.Classes['ZCL_ABAPGIT_AFF_REGISTRY'].c_aff_feature)}, ${abap.templateFormatting(abap.Classes['ZCL_ABAPGIT_PROPERTIES_FILE'].c_properties_feature)}`));
    lo_settings.set(await (new abap.Classes['CLAS-ZCL_ABAPGIT_OBJECTS-LCL_SETTINGS_WITH_FEATURES']()).constructor_({iv_features: lv_features}));
    await abap.Classes['ZCL_ABAPGIT_PERSIST_INJECTOR'].set_settings({ii_settings: lo_settings});
    abap.statements.append({source: new abap.types.String().set(`DE`), target: lt_target_langu});
    lo_i18n_params.set((await abap.Classes['ZCL_ABAPGIT_I18N_PARAMS'].new({iv_main_language: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_english, it_translation_langs: lt_target_langu, iv_use_lxe: abap.builtin.abap_true})));
    ls_act.set((await abap.Classes['ZCL_ABAPGIT_OBJECTS'].serialize({is_item: ls_item, io_i18n_params: lo_i18n_params})));
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_not_initial({act: ls_act.get().files});
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_act.get().item, exp: ls_item});
    lv_filename.set(abap.CharacterFactory.get(45, 'if_badi_tadir_changed.intf.i18n.de.properties'));
    abap.statements.readTable(ls_act.get().files,{keyName: "file",
      into: ls_translation_de,
      withKey: (i) => {return abap.compare.eq(i.filename, lv_filename);},
      withKeyValue: [{key: (i) => {return i.filename}, value: lv_filename}],
      usesTableLine: false,
      withKeySimple: {"filename": lv_filename}});
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_not_initial({act: ls_translation_de});
  }
  async #serialize_doma() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'DOMA'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(5, 'PGMID'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_dtel() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'DTEL'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(5, 'PGMID'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_fugr() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'FUGR'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(4, 'SRFC'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_msag() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'MSAG'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(2, '00'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_prog() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'PROG'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(10, 'SAPLWBABAP'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_tran() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'TRAN'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(4, 'SE38'));
    await this.#check({is_item: ls_item});
  }
  async #serialize_ttyp() {
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    ls_item.get().obj_type.set(abap.CharacterFactory.get(4, 'TTYP'));
    ls_item.get().obj_name.set(abap.CharacterFactory.get(8, 'ABAPPROG'));
    await this.#check({is_item: ls_item});
  }
  async #check(INPUT) {
    let is_item = INPUT?.is_item;
    if (is_item?.getQualifiedName === undefined || is_item.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_ITEM") { is_item = undefined; }
    if (is_item === undefined) { is_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}).set(INPUT.is_item); }
    let ls_files_item = new abap.types.Structure({
    "files": abap.types.TableFactory.construct(new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"file_path","type":"SORTED","isUnique":true,"keyFields":["PATH","FILENAME"]},{"name":"file","type":"SORTED","isUnique":false,"keyFields":["FILENAME"]}]}, "zif_abapgit_git_definitions=>ty_files_tt"),
    "item": new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {})}, "zif_abapgit_objects=>ty_serialization", undefined, {}, {});
    ls_files_item.set((await abap.Classes['ZCL_ABAPGIT_OBJECTS'].serialize({is_item: is_item, io_i18n_params: (await abap.Classes['ZCL_ABAPGIT_I18N_PARAMS'].new({iv_main_language: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_english}))})));
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_not_initial({act: ls_files_item.get().files});
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: ls_files_item.get().item, exp: is_item});
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_OBJECTS-LTCL_SERIALIZE'] = ltcl_serialize;
class ltcl_object_tabl_mock extends zcl_abapgit_objects_super {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_OBJECTS-LTCL_OBJECT_TABL_MOCK';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_OBJECT"];
  static ATTRIBUTES = {"ZIF_ABAPGIT_OBJECT~GC_STEP_ID": {"type": () => {return new abap.types.Structure({
  "early": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"}),
  "abap": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"}),
  "ddic": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"}),
  "late": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"}),
  "lxe": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {};
  constructor() {
    const sup = super();
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "SUPER": sup.FRIENDS_ACCESS_INSTANCE,
    };
    this.zif_abapgit_object$gc_step_id = abap.Classes['ZIF_ABAPGIT_OBJECT'].zif_abapgit_object$gc_step_id;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async zif_abapgit_object$is_locked() {
    let rv_is_locked = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let unique512 = this.ms_item.get().obj_name;
    if (abap.compare.eq(unique512, abap.CharacterFactory.get(11, 'Z_TEST_TABL'))) {
      rv_is_locked.set(abap.builtin.abap_true);
    } else if (abap.compare.eq(unique512, abap.CharacterFactory.get(13, 'Z_TEST_TABL_2'))) {
      rv_is_locked.set(abap.builtin.abap_false);
    }
    return rv_is_locked;
  }
  async zif_abapgit_object$get_deserialize_steps() {
    let rt_steps = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_objects=>ty_deserialization_step_tt");
    return rt_steps;
  }
  async zif_abapgit_object$get_deserialize_order(INPUT) {
    let rt_objects_before = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");
    let it_all_objects = INPUT?.it_all_objects;
    if (it_all_objects?.getQualifiedName === undefined || it_all_objects.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_ITEMS_TT") { it_all_objects = undefined; }
    if (it_all_objects === undefined) { it_all_objects = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt").set(INPUT.it_all_objects); }
    return rt_objects_before;
  }
  async zif_abapgit_object$changed_by(INPUT) {
    let rv_user = new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"});
    let iv_extra = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_extra) {iv_extra.set(INPUT.iv_extra);}
    return rv_user;
  }
  async zif_abapgit_object$get_comparator() {
    let ri_comparator = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_COMPARATOR", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_COMPARATOR"});
    return ri_comparator;
  }
  async zif_abapgit_object$delete(INPUT) {
    let iv_package = INPUT?.iv_package;
    if (iv_package?.getQualifiedName === undefined || iv_package.getQualifiedName() !== "DEVCLASS") { iv_package = undefined; }
    if (iv_package === undefined) { iv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}).set(INPUT.iv_package); }
    let iv_transport = INPUT?.iv_transport;
    if (iv_transport?.getQualifiedName === undefined || iv_transport.getQualifiedName() !== "TRKORR") { iv_transport = undefined; }
    if (iv_transport === undefined) { iv_transport = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}).set(INPUT.iv_transport); }
  }
  async zif_abapgit_object$deserialize(INPUT) {
    let iv_package = INPUT?.iv_package;
    if (iv_package?.getQualifiedName === undefined || iv_package.getQualifiedName() !== "DEVCLASS") { iv_package = undefined; }
    if (iv_package === undefined) { iv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}).set(INPUT.iv_package); }
    let io_xml = INPUT?.io_xml;
    if (io_xml?.getQualifiedName === undefined || io_xml.getQualifiedName() !== "ZIF_ABAPGIT_XML_INPUT") { io_xml = undefined; }
    if (io_xml === undefined) { io_xml = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_XML_INPUT", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_XML_INPUT"}).set(INPUT.io_xml); }
    let iv_step = INPUT?.iv_step;
    if (iv_step?.getQualifiedName === undefined || iv_step.getQualifiedName() !== "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP") { iv_step = undefined; }
    if (iv_step === undefined) { iv_step = new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"}).set(INPUT.iv_step); }
    let ii_log = INPUT?.ii_log;
    if (ii_log?.getQualifiedName === undefined || ii_log.getQualifiedName() !== "ZIF_ABAPGIT_LOG") { ii_log = undefined; }
    if (ii_log === undefined) { ii_log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"}).set(INPUT.ii_log); }
    let iv_transport = INPUT?.iv_transport;
    if (iv_transport?.getQualifiedName === undefined || iv_transport.getQualifiedName() !== "TRKORR") { iv_transport = undefined; }
    if (iv_transport === undefined) { iv_transport = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}).set(INPUT.iv_transport); }
  }
  async zif_abapgit_object$exists() {
    let rv_bool = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    return rv_bool;
  }
  async zif_abapgit_object$get_metadata() {
    let rs_metadata = new abap.types.Structure({
    "class": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_METADATA-CLASS"}),
    "version": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_METADATA-VERSION"})}, "zif_abapgit_definitions=>ty_metadata", undefined, {}, {});
    return rs_metadata;
  }
  async zif_abapgit_object$jump(INPUT) {
    let rv_exit = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let iv_extra = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_extra) {iv_extra.set(INPUT.iv_extra);}
    return rv_exit;
  }
  async zif_abapgit_object$serialize(INPUT) {
    let io_xml = INPUT?.io_xml;
    if (io_xml?.getQualifiedName === undefined || io_xml.getQualifiedName() !== "ZIF_ABAPGIT_XML_OUTPUT") { io_xml = undefined; }
    if (io_xml === undefined) { io_xml = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_XML_OUTPUT", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_XML_OUTPUT"}).set(INPUT.io_xml); }
  }
  async zif_abapgit_object$is_active() {
    let rv_active = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    return rv_active;
  }
  async zif_abapgit_object$map_filename_to_object(INPUT) {
    return ltcl_object_tabl_mock.zif_abapgit_object$map_filename_to_object(INPUT);
  }
  static async zif_abapgit_object$map_filename_to_object(INPUT) {
    let iv_item_part_of_filename = INPUT?.iv_item_part_of_filename;
    if (iv_item_part_of_filename?.getQualifiedName === undefined || iv_item_part_of_filename.getQualifiedName() !== "STRING") { iv_item_part_of_filename = undefined; }
    if (iv_item_part_of_filename === undefined) { iv_item_part_of_filename = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_item_part_of_filename); }
    let iv_path = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_path) {iv_path.set(INPUT.iv_path);}
    let io_dot = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_DOT_ABAPGIT", RTTIName: "\\CLASS=ZCL_ABAPGIT_DOT_ABAPGIT"});
    if (INPUT && INPUT.io_dot) {io_dot.set(INPUT.io_dot);}
    let iv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"});
    if (INPUT && INPUT.iv_package) {iv_package.set(INPUT.iv_package);}
    let cs_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    if (INPUT && INPUT.cs_item) {cs_item = INPUT.cs_item;}
  }
  async zif_abapgit_object$map_object_to_filename(INPUT) {
    return ltcl_object_tabl_mock.zif_abapgit_object$map_object_to_filename(INPUT);
  }
  static async zif_abapgit_object$map_object_to_filename(INPUT) {
    let is_item = INPUT?.is_item;
    if (is_item?.getQualifiedName === undefined || is_item.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_ITEM") { is_item = undefined; }
    if (is_item === undefined) { is_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}).set(INPUT.is_item); }
    let iv_ext = INPUT?.iv_ext;
    if (iv_ext?.getQualifiedName === undefined || iv_ext.getQualifiedName() !== "STRING") { iv_ext = undefined; }
    if (iv_ext === undefined) { iv_ext = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_ext); }
    let iv_extra = INPUT?.iv_extra;
    let cv_item_part_of_filename = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.cv_item_part_of_filename) {cv_item_part_of_filename = INPUT.cv_item_part_of_filename;}
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_OBJECTS-LTCL_OBJECT_TABL_MOCK'] = ltcl_object_tabl_mock;
ltcl_object_tabl_mock.zif_abapgit_object$gc_step_id = new abap.types.Structure({
"early": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"}),
"abap": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"}),
"ddic": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"}),
"late": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"}),
"lxe": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_OBJECTS=>TY_DESERIALIZATION_STEP"})}, undefined, undefined, {}, {});
ltcl_object_tabl_mock.zif_abapgit_object$gc_step_id.get().early.set('EARLY');
ltcl_object_tabl_mock.zif_abapgit_object$gc_step_id.get().abap.set('ABAP');
ltcl_object_tabl_mock.zif_abapgit_object$gc_step_id.get().ddic.set('DDIC');
ltcl_object_tabl_mock.zif_abapgit_object$gc_step_id.get().late.set('LATE');
ltcl_object_tabl_mock.zif_abapgit_object$gc_step_id.get().lxe.set('LXE');
 
class ltcl_check_objects_locked {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_OBJECTS-LTCL_CHECK_OBJECTS_LOCKED';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"MT_GIVEN_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "obj_type": new abap.types.Character(4, {}),
  "obj_name": new abap.types.Character(40, {}),
  "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
  "srcsystem": new abap.types.Character(5, {}),
  "origlang": new abap.types.Character(1, {}),
  "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MV_EXCEPTION_TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "}};
  static METHODS = {"THROW_EXCP_IF_OBJECT_IS_LOCKED": {"visibility": "I", "parameters": {}},
  "NO_EXCP_IF_OBJ_IS_NOT_LOCKED": {"visibility": "I", "parameters": {}},
  "GIVEN_LOCKED_OBJECT": {"visibility": "I", "parameters": {}},
  "WHEN_CHECK_OBJECTS_LOCKED": {"visibility": "I", "parameters": {}},
  "THEN_EXCEPTION_SHD_BE_RAISED": {"visibility": "I", "parameters": {}},
  "GIVEN_NOT_LOCKED_OBJECT": {"visibility": "I", "parameters": {}},
  "THEN_NO_EXCEPTION_SHD_OCCUR": {"visibility": "I", "parameters": {}},
  "GIVEN_OBJECT": {"visibility": "I", "parameters": {"IV_OBJECT_NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}};
  #mt_given_items;
  #mv_exception_text;
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "throw_excp_if_object_is_locked": this.#throw_excp_if_object_is_locked.bind(this),
      "no_excp_if_obj_is_not_locked": this.#no_excp_if_obj_is_not_locked.bind(this),
      "given_locked_object": this.#given_locked_object.bind(this),
      "when_check_objects_locked": this.#when_check_objects_locked.bind(this),
      "then_exception_shd_be_raised": this.#then_exception_shd_be_raised.bind(this),
      "given_not_locked_object": this.#given_not_locked_object.bind(this),
      "then_no_exception_shd_occur": this.#then_no_exception_shd_occur.bind(this),
      "given_object": this.#given_object.bind(this),
    };
    this.#mt_given_items = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");
    this.FRIENDS_ACCESS_INSTANCE["mt_given_items"] = this.#mt_given_items;
    this.#mv_exception_text = new abap.types.String({qualifiedName: "STRING"});
    this.FRIENDS_ACCESS_INSTANCE["mv_exception_text"] = this.#mv_exception_text;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async #throw_excp_if_object_is_locked() {
    await this.#given_locked_object();
    await this.#when_check_objects_locked();
    await this.#then_exception_shd_be_raised();
  }
  async #no_excp_if_obj_is_not_locked() {
    await this.#given_not_locked_object();
    await this.#when_check_objects_locked();
    await this.#then_no_exception_shd_occur();
  }
  async #given_locked_object() {
    await this.#given_object({iv_object_name: abap.CharacterFactory.get(11, 'Z_TEST_TABL')});
  }
  async #when_check_objects_locked() {
    let lx_error = new abap.types.ABAPObject({qualifiedName: "ZCX_ABAPGIT_EXCEPTION", RTTIName: "\\CLASS=ZCX_ABAPGIT_EXCEPTION"});
    try {
      await abap.Classes['ZCL_ABAPGIT_OBJECTS'].check_objects_locked({it_items: this.#mt_given_items});
    } catch (e) {
      if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) {
        lx_error.set(e);
        this.#mv_exception_text.set((await lx_error.get().if_message$get_text()));
      } else {
        throw e;
      }
    }
  }
  async #then_exception_shd_be_raised() {
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({exp: new abap.types.String().set(`Object TABL Z_TEST_TABL is locked. Action not possible.`), act: this.#mv_exception_text});
  }
  async #given_not_locked_object() {
    await this.#given_object({iv_object_name: abap.CharacterFactory.get(13, 'Z_TEST_TABL_2')});
  }
  async #then_no_exception_shd_occur() {
    await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_initial({act: this.#mv_exception_text});
  }
  async #given_object(INPUT) {
    let iv_object_name = INPUT?.iv_object_name;
    if (iv_object_name?.getQualifiedName === undefined || iv_object_name.getQualifiedName() !== "STRING") { iv_object_name = undefined; }
    if (iv_object_name === undefined) { iv_object_name = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_object_name); }
    let lc_obj_type = new abap.types.String({qualifiedName: "STRING"});
    lc_obj_type.set('TABL');
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    let ls_obj_serializer_map = new abap.types.Structure({
    "item": new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}),
    "metadata": new abap.types.Structure({
    "class": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_METADATA-CLASS"}),
    "version": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_METADATA-VERSION"})}, "zif_abapgit_definitions=>ty_metadata", undefined, {}, {})}, "zcl_abapgit_objects=>ty_obj_serializer_item", undefined, {}, {});
    ls_item.get().obj_type.set(lc_obj_type);
    ls_item.get().obj_name.set(iv_object_name);
    abap.statements.insertInternal({data: ls_item, table: this.#mt_given_items});
    ls_obj_serializer_map.get().item.get().obj_type.set(lc_obj_type);
    ls_obj_serializer_map.get().item.get().obj_name.set(iv_object_name);
    ls_obj_serializer_map.get().metadata.get().class.set(abap.CharacterFactory.get(59, '\\CLASS-POOL=ZCL_ABAPGIT_OBJECTS\\CLASS=LTCL_OBJECT_TABL_MOCK'));
    abap.statements.insertInternal({data: ls_obj_serializer_map, table: abap.Classes['ZCL_ABAPGIT_OBJECTS'].gt_obj_serializer_map});
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_OBJECTS-LTCL_CHECK_OBJECTS_LOCKED'] = ltcl_check_objects_locked;
export {ltcl_object_types, lcl_settings_with_features, ltcl_serialize, ltcl_object_tabl_mock, ltcl_check_objects_locked};