All files / output ezabapgit.enqu.mjs

33.33% Statements 5/15
100% Branches 1/1
0% Functions 0/2
33.33% Lines 5/15

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 151x 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");
  }
  await lookup.enqueue(INPUT);
};
abap.FunctionModules["DEQUEUE_EZABAPGIT"] = async (INPUT) => {
  const lookup = abap.Classes["KERNEL_LOCK"];
  if (lookup === undefined) {
    throw new Error("Lock, kernel class missing");
  }
  await lookup.dequeue(INPUT);
};