• 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

16.67
/src/rules/createAddRuleToQueue.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
var Promise = require('@adobe/reactor-promise');
3✔
14
var lastPromiseInQueue = Promise.resolve();
3✔
15

16
module.exports = function (
3✔
17
  addConditionToQueue,
18
  addActionToQueue,
19
  logRuleCompleted
20
) {
UNCOV
21
  return function (rule, syntheticEvent) {
×
UNCOV
22
    if (rule.conditions) {
×
UNCOV
23
      rule.conditions.forEach(function (condition) {
×
UNCOV
24
        lastPromiseInQueue = addConditionToQueue(
×
25
          condition,
26
          rule,
27
          syntheticEvent,
28
          lastPromiseInQueue
29
        );
30
      });
31
    }
32

UNCOV
33
    if (rule.actions) {
×
UNCOV
34
      rule.actions.forEach(function (action) {
×
UNCOV
35
        lastPromiseInQueue = addActionToQueue(
×
36
          action,
37
          rule,
38
          syntheticEvent,
39
          lastPromiseInQueue
40
        );
41
      });
42
    }
43

UNCOV
44
    lastPromiseInQueue = lastPromiseInQueue.then(function () {
×
UNCOV
45
      logRuleCompleted(rule);
×
46
    });
47

48
    // Allows later rules to keep running when an error occurs within this rule.
UNCOV
49
    lastPromiseInQueue = lastPromiseInQueue.catch(function () {});
×
50

UNCOV
51
    return lastPromiseInQueue;
×
52
  };
53
};
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