All files / output cl_salv_sorts.clas.mjs

45.16% Statements 14/31
100% Branches 2/2
14.28% Functions 1/7
45.16% Lines 14/31

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 311x 1x 1x 1x 1x 1x 1x 1x 1x               1x       1x               1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_salv_sorts.clas.abap
class cl_salv_sorts {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_SALV_SORTS';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"ADD_SORT": {"visibility": "U", "parameters": {"COLUMNNAME": {"type": () => {return new abap.types.Character();}, "is_optional": " "}, "SEQUENCE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "SUBTOTAL": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "add_sort": this.add_sort.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async add_sort(INPUT) {
    let columnname = INPUT?.columnname;
    let sequence = INPUT?.sequence || new abap.types.Character(4);
    let subtotal = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.subtotal) {subtotal.set(INPUT.subtotal);}
    if (INPUT === undefined || INPUT.subtotal === undefined) {subtotal = abap.builtin.abap_false;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
}
abap.Classes['CL_SALV_SORTS'] = cl_salv_sorts;
export {cl_salv_sorts};