• 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

7.14
/src/rules/createInitEventModule.js
1
/*
2
Copyright 2020 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
module.exports = function (
3✔
14
  triggerRule,
15
  executeDelegateModule,
16
  normalizeSyntheticEvent,
17
  getErrorMessage,
18
  getSyntheticEventMeta,
19
  logger
20
) {
UNCOV
21
  return function (guardUntilAllInitialized, ruleEventPair) {
×
UNCOV
22
    var rule = ruleEventPair.rule;
×
UNCOV
23
    var event = ruleEventPair.event;
×
UNCOV
24
    event.settings = event.settings || {};
×
25

UNCOV
26
    try {
×
UNCOV
27
      var syntheticEventMeta = getSyntheticEventMeta(ruleEventPair);
×
28

UNCOV
29
      executeDelegateModule(event, null, [
×
30
        /**
31
         * This is the callback that executes a particular rule when an event has occurred.
32
         * @param {Object} [syntheticEvent] An object that contains detail regarding the event
33
         * that occurred.
34
         */
35
        function trigger(syntheticEvent) {
36
          // DTM-11871
37
          // If we're still in the process of initializing event modules,
38
          // we need to queue up any calls to trigger, otherwise if the triggered
39
          // rule does something that triggers a different rule whose event module
40
          // has not been initialized, that secondary rule will never get executed.
41
          // This can be removed if we decide to always use the rule queue, since
42
          // conditions and actions will be processed asynchronously, which
43
          // would give time for all event modules to be initialized.
44

UNCOV
45
          var normalizedSyntheticEvent = normalizeSyntheticEvent(
×
46
            syntheticEventMeta,
47
            syntheticEvent
48
          );
49

UNCOV
50
          guardUntilAllInitialized(function () {
×
UNCOV
51
            triggerRule(normalizedSyntheticEvent, rule);
×
52
          });
53
        }
54
      ]);
55
    } catch (e) {
UNCOV
56
      logger.error(getErrorMessage(event, rule, e));
×
57
    }
58
  };
59
};
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