All files / output ezabapgit.enqu.mjs

30% Statements 6/20
100% Branches 1/1
0% Functions 0/2
30% Lines 6/20

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 201x 1x               1x 1x 1x               1x
// enqueue object
abap.FunctionModules["ENQUEUE_EZABAPGIT"] = async (INPUT) => {
  const lookup = abap.Classes["KERNEL_LOCK"];
  if (lookup === undefined) {
    throw new Error("Lock, kernel class missing");
  }
  const table_name = new abap.types.String({qualifiedName: "STRING"}).set("ZABAPGIT" );
  const enqueue_name = new abap.types.String({qualifiedName: "STRING"}).set("EZABAPGIT");
  await lookup.enqueue({table_name: table_name, enqueue_name: enqueue_name, input: INPUT.exporting});
};
 
abap.FunctionModules["DEQUEUE_EZABAPGIT"] = async (INPUT) => {
  const lookup = abap.Classes["KERNEL_LOCK"];
  if (lookup === undefined) {
    throw new Error("Lock, kernel class missing");
  }
  const table_name = new abap.types.String({qualifiedName: "STRING"}).set("ZABAPGIT" );
  const enqueue_name = new abap.types.String({qualifiedName: "STRING"}).set("EZABAPGIT");
  await lookup.dequeue({table_name: table_name, enqueue_name: enqueue_name, input: INPUT.exporting});
};