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 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 1x 2x 2x 2x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const {zcl_abapgit_git_time} = await import("./zcl_abapgit_git_time.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_git_time.clas.testclasses.abap
class ltcl_time_test {
static INTERNAL_TYPE = 'CLAS';
static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_GIT_TIME-LTCL_TIME_TEST';
static IMPLEMENTED_INTERFACES = [];
static ATTRIBUTES = {};
static METHODS = {"GET_UNIX": {"visibility": "I", "parameters": {}},
"GET_UTC": {"visibility": "I", "parameters": {}}};
constructor() {
this.me = new abap.types.ABAPObject();
this.me.set(this);
this.INTERNAL_ID = abap.internalIdCounter++;
this.FRIENDS_ACCESS_INSTANCE = {
"get_unix": this.#get_unix.bind(this),
"get_utc": this.#get_utc.bind(this),
};
}
async constructor_(INPUT) {
if (super.constructor_) { await super.constructor_(INPUT); }
return this;
}
async #get_unix() {
let lv_time = new abap.types.Character(16, {"qualifiedName":"zcl_abapgit_git_time=>ty_unixtime"});
lv_time.set((await abap.Classes['ZCL_ABAPGIT_GIT_TIME'].get_unix()));
await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_not_initial({act: lv_time});
}
async #get_utc() {
let lv_date = new abap.types.Date();
let lv_time = new abap.types.Time();
await abap.Classes['ZCL_ABAPGIT_GIT_TIME'].get_utc({iv_unix: abap.CharacterFactory.get(10, '1574605521'), ev_date: lv_date, ev_time: lv_time});
await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_not_initial({act: lv_date});
await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_not_initial({act: lv_time});
}
}
abap.Classes['CLAS-ZCL_ABAPGIT_GIT_TIME-LTCL_TIME_TEST'] = ltcl_time_test;
export {ltcl_time_test}; |