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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | await import("./cl_function_test_environment.clas.locals.mjs"); const {cx_root} = await import("./cx_root.clas.mjs"); // cl_function_test_environment.clas.abap class cl_function_test_environment { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'CL_FUNCTION_TEST_ENVIRONMENT'; static IMPLEMENTED_INTERFACES = ["IF_FUNCTION_TEST_ENVIRONMENT"]; static ATTRIBUTES = {"GT_BACKUP": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "name": new abap.types.Character(30, {"qualifiedName":"SXCO_FM_NAME","ddicName":"SXCO_FM_NAME","description":"Function module name"}), "double": new abap.types.ABAPObject({qualifiedName: "IF_FUNCTION_TESTDOUBLE", RTTIName: "\\INTERFACE=IF_FUNCTION_TESTDOUBLE"})}, "cl_function_test_environment=>ty_backup", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["NAME"]},"secondary":[]}, "");}, "visibility": "I", "is_constant": " ", "is_class": "X"}}; static METHODS = {"CREATE": {"visibility": "U", "parameters": {"FUNCTION_TEST_ENVIRONMENT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "IF_FUNCTION_TEST_ENVIRONMENT", RTTIName: "\\INTERFACE=IF_FUNCTION_TEST_ENVIRONMENT"});}, "is_optional": " "}, "FUNCTION_MODULES": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Character(30, {"qualifiedName":"SXCO_FM_NAME","ddicName":"SXCO_FM_NAME","description":"Function module name"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["TABLE_LINE"]},"secondary":[]}, "if_function_test_environment=>tt_function_dependencies");}, "is_optional": " "}}}}; #gt_backup; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { }; this.gt_backup = cl_function_test_environment.gt_backup; } async constructor_(INPUT) { if (super.constructor_) { await super.constructor_(INPUT); } return this; } async create(INPUT) { return cl_function_test_environment.create(INPUT); } static async create(INPUT) { let function_test_environment = new abap.types.ABAPObject({qualifiedName: "IF_FUNCTION_TEST_ENVIRONMENT", RTTIName: "\\INTERFACE=IF_FUNCTION_TEST_ENVIRONMENT"}); let function_modules = INPUT?.function_modules; if (function_modules?.getQualifiedName === undefined || function_modules.getQualifiedName() !== "IF_FUNCTION_TEST_ENVIRONMENT=>TT_FUNCTION_DEPENDENCIES") { function_modules = undefined; } if (function_modules === undefined) { function_modules = abap.types.TableFactory.construct(new abap.types.Character(30, {"qualifiedName":"SXCO_FM_NAME","ddicName":"SXCO_FM_NAME","description":"Function module name"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["TABLE_LINE"]},"secondary":[]}, "if_function_test_environment=>tt_function_dependencies").set(INPUT.function_modules); } let lv_module = new abap.types.Character(30, {"qualifiedName":"SXCO_FM_NAME","ddicName":"SXCO_FM_NAME","description":"Function module name"}); let ls_row = new abap.types.Structure({ "name": new abap.types.Character(30, {"qualifiedName":"SXCO_FM_NAME","ddicName":"SXCO_FM_NAME","description":"Function module name"}), "double": new abap.types.ABAPObject({qualifiedName: "IF_FUNCTION_TESTDOUBLE", RTTIName: "\\INTERFACE=IF_FUNCTION_TESTDOUBLE"})}, "cl_function_test_environment=>ty_backup", undefined, {}, {}); abap.statements.assert(abap.compare.gt(abap.builtin.lines({val: function_modules}), abap.IntegerFactory.get(0))); function_test_environment.set(await (new abap.Classes['CL_FUNCTION_TEST_ENVIRONMENT']()).constructor_()); function_test_environment.value.REVERT = {}; for await (const unique1284 of abap.statements.loop(function_modules)) { lv_module.set(unique1284); ls_row.get().name.set(lv_module); ls_row.get().double.set(await (new abap.Classes['CLAS-CL_FUNCTION_TEST_ENVIRONMENT-LCL_DOUBLE']()).constructor_({iv_name: lv_module})); function_test_environment.value.REVERT[lv_module.get().trimEnd()] = abap.FunctionModules[lv_module.get().trimEnd()]; abap.statements.insertInternal({data: ls_row, table: cl_function_test_environment.gt_backup}); } return function_test_environment; } async if_function_test_environment$get_double(INPUT) { let result = new abap.types.ABAPObject({qualifiedName: "IF_FUNCTION_TESTDOUBLE", RTTIName: "\\INTERFACE=IF_FUNCTION_TESTDOUBLE"}); let function_name = INPUT?.function_name; if (function_name?.getQualifiedName === undefined || function_name.getQualifiedName() !== "SXCO_FM_NAME") { function_name = undefined; } if (function_name === undefined) { function_name = new abap.types.Character(30, {"qualifiedName":"SXCO_FM_NAME","ddicName":"SXCO_FM_NAME","description":"Function module name"}).set(INPUT.function_name); } let fs_ls_row_ = new abap.types.FieldSymbol(new abap.types.Structure({ "name": new abap.types.Character(30, {"qualifiedName":"SXCO_FM_NAME","ddicName":"SXCO_FM_NAME","description":"Function module name"}), "double": new abap.types.ABAPObject({qualifiedName: "IF_FUNCTION_TESTDOUBLE", RTTIName: "\\INTERFACE=IF_FUNCTION_TESTDOUBLE"})}, "cl_function_test_environment=>ty_backup", undefined, {}, {})); abap.statements.readTable(cl_function_test_environment.gt_backup,{assigning: fs_ls_row_, withKey: (i) => {return abap.compare.eq(i.name, function_name);}, withKeyValue: [{key: (i) => {return i.name}, value: function_name}], usesTableLine: false, withKeySimple: {"name": function_name}}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); result.set(fs_ls_row_.get().double); return result; } async if_function_test_environment$clear_doubles() { let fs_ls_row_ = new abap.types.FieldSymbol(new abap.types.Structure({ "name": new abap.types.Character(30, {"qualifiedName":"SXCO_FM_NAME","ddicName":"SXCO_FM_NAME","description":"Function module name"}), "double": new abap.types.ABAPObject({qualifiedName: "IF_FUNCTION_TESTDOUBLE", RTTIName: "\\INTERFACE=IF_FUNCTION_TESTDOUBLE"})}, "cl_function_test_environment=>ty_backup", undefined, {}, {})); for await (const unique1285 of abap.statements.loop(cl_function_test_environment.gt_backup)) { fs_ls_row_.assign(unique1285); abap.FunctionModules[fs_ls_row_.get().name.get().trimEnd()] = this.REVERT[fs_ls_row_.get().name.get().trimEnd()]; } cl_function_test_environment.gt_backup.clear(); } } abap.Classes['CL_FUNCTION_TEST_ENVIRONMENT'] = cl_function_test_environment; cl_function_test_environment.gt_backup = abap.types.TableFactory.construct(new abap.types.Structure({ "name": new abap.types.Character(30, {"qualifiedName":"SXCO_FM_NAME","ddicName":"SXCO_FM_NAME","description":"Function module name"}), "double": new abap.types.ABAPObject({qualifiedName: "IF_FUNCTION_TESTDOUBLE", RTTIName: "\\INTERFACE=IF_FUNCTION_TESTDOUBLE"})}, "cl_function_test_environment=>ty_backup", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["NAME"]},"secondary":[]}, ""); cl_function_test_environment.ty_backup = new abap.types.Structure({ "name": new abap.types.Character(30, {"qualifiedName":"SXCO_FM_NAME","ddicName":"SXCO_FM_NAME","description":"Function module name"}), "double": new abap.types.ABAPObject({qualifiedName: "IF_FUNCTION_TESTDOUBLE", RTTIName: "\\INTERFACE=IF_FUNCTION_TESTDOUBLE"})}, "cl_function_test_environment=>ty_backup", undefined, {}, {}); export {cl_function_test_environment}; |