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

haraka / Haraka / 26860553384

03 Jun 2026 02:44AM UTC coverage: 72.471% (-0.08%) from 72.553%
26860553384

Pull #3585

github

web-flow
Merge c47e894d1 into 1206ab40a
Pull Request #3585: refactor: move rfc1869, FsyncWriteStream, TimerQueue to haraka-utils

1672 of 2212 branches covered (75.59%)

6 of 19 new or added lines in 4 files covered. (31.58%)

6 existing lines in 2 files now uncovered.

7637 of 10538 relevant lines covered (72.47%)

25.92 hits per line

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

88.89
/plugins/queue/discard.js
1
// discard
6✔
2

6✔
3
exports.register = function () {
6✔
4
    this.register_hook('queue', 'discard')
6✔
5
    this.register_hook('queue_outbound', 'discard')
6✔
6
}
6✔
7

6✔
8
exports.discard = (next, connection) => {
6✔
9
    const txn = connection.transaction
3✔
10

3✔
11
    const q_wants = txn.notes.get('queue.wants')
3✔
12
    if (q_wants && q_wants !== 'discard') return next()
3!
UNCOV
13

✔
14
    function discard() {
3✔
15
        connection.loginfo('discarding message')
3✔
16
        // Pretend we delivered the message
3✔
17
        return next(OK)
3✔
18
    }
3✔
19

3✔
20
    if (connection.notes.discard) return discard()
3!
21
    if (txn.notes.discard) return discard()
3!
22
    if (q_wants === 'discard') return discard()
3!
23
    if (process.env.YES_REALLY_DO_DISCARD) return discard()
3✔
24

3✔
25
    // Allow other queue plugins to deliver
3!
UNCOV
26
    next()
×
UNCOV
27
}
×
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