• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

adobe / reactor-turbine / 26974271630

04 Jun 2026 07:23PM UTC coverage: 18.928% (-77.0%) from 95.912%
26974271630

Pull #201

github

web-flow
Merge 99f374fa8 into 4a42733a4
Pull Request #201: Platir 64071 update vulnerability chain

36 of 379 branches covered (9.5%)

Branch coverage included in aggregate %.

4 of 6 new or added lines in 1 file covered. (66.67%)

640 existing lines in 47 files now uncovered.

197 of 852 relevant lines covered (23.12%)

1.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

8.33
/src/createExecuteDelegateModule.js
1
/***************************************************************************************
2
 * (c) 2018 Adobe. All rights reserved.
3
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
 * you may not use this file except in compliance with the License. You may obtain a copy
5
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
 *
7
 * Unless required by applicable law or agreed to in writing, software distributed under
8
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
 * OF ANY KIND, either express or implied. See the License for the specific language
10
 * governing permissions and limitations under the License.
11
 ****************************************************************************************/
12

13
var MODULE_NOT_FUNCTION_ERROR = 'Module did not export a function.';
3✔
14

15
module.exports = function (
3✔
16
  moduleProvider,
17
  replaceTokens,
18
  settingsFileTransformer
19
) {
UNCOV
20
  return function (moduleDescriptor, syntheticEvent, moduleCallParameters) {
×
UNCOV
21
    moduleCallParameters = moduleCallParameters || [];
×
UNCOV
22
    var moduleExports = moduleProvider.getModuleExports(
×
23
      moduleDescriptor.modulePath
24
    );
25

UNCOV
26
    if (typeof moduleExports !== 'function') {
×
UNCOV
27
      throw new Error(MODULE_NOT_FUNCTION_ERROR);
×
28
    }
29

30
    // dynamically replace the host on the module settings
UNCOV
31
    var moduleDefinition = moduleProvider.getModuleDefinition(
×
32
      moduleDescriptor.modulePath
33
    );
34

35
    // We're transforming URLs in-place to ensure that the developer's settings object reference
36
    // is the same object reference as moduleDescriptor.settings. Therefore, we must only transform
37
    // the settings one time and save a reference saying that we've done that. We're saving this in
38
    // the module descriptor of each event, condition, and action so that we aren't modifying the
39
    // settings object.
UNCOV
40
    var moduleSettings = moduleDescriptor.settings || {};
×
UNCOV
41
    if (
×
42
      !moduleDescriptor.hasTransformedFilePaths &&
×
43
      moduleDefinition.filePaths
44
    ) {
UNCOV
45
      settingsFileTransformer(
×
46
        moduleSettings,
47
        moduleDefinition.filePaths,
48
        moduleDescriptor.modulePath
49
      );
UNCOV
50
      moduleDescriptor.hasTransformedFilePaths = true;
×
51
    }
52

53
    // replace tokens
UNCOV
54
    var moduleDescriptorSettings = replaceTokens(
×
55
      moduleSettings,
56
      syntheticEvent
57
    );
UNCOV
58
    return moduleExports
×
59
      .bind(null, moduleDescriptorSettings)
60
      .apply(null, moduleCallParameters);
61
  };
62
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc