All files / output zcl_abapgit_repo_offline.clas.mjs

75% Statements 27/36
100% Branches 4/4
75% Functions 3/4
75% Lines 27/36

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 361x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 2x 1x 2x 2x 2x 1x                   1x 1x 1x
const {zcl_abapgit_repo} = await import("./zcl_abapgit_repo.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_repo_offline.clas.abap
class zcl_abapgit_repo_offline extends zcl_abapgit_repo {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_REPO_OFFLINE';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_REPO"];
  static ATTRIBUTES = {};
  static METHODS = {"RESET_REMOTE": {"visibility": "O", "parameters": {}}};
  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,
      "reset_remote": this.reset_remote.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async reset_remote() {
    let lt_backup = 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");
    lt_backup.set(this.mt_remote);
    await super.reset_remote();
    await this.zif_abapgit_repo$set_files_remote({it_files: lt_backup});
  }
}
abap.Classes['ZCL_ABAPGIT_REPO_OFFLINE'] = zcl_abapgit_repo_offline;
export {zcl_abapgit_repo_offline};