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

nats-io / nats-server / 40819170735
77%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2026 05:47AM UTC
Jobs 1
Files 66
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Oct 2026 03:51PM UTC coverage: 81.268% (+3.5%) from 77.719%
40819170735

push

github

web-flow
[ADDED] Account hash subject mapping functions (#8631) (#8670)

Hashes an account name to the 8 character account hash used by the v2
$JS.ACK and $JS.FC subjects (js_ack_fc_v2).

- {{AccountHash()}} or {{account-hash()}}: the hash of the account /
usable everywhere subject mapping can be used.
- {{account-hash-import()}}: the hash of the exporting account / only
available in imports
- {{account-hash-leaf-remote()}}: the hash of the remote account of a
leaf node connection amd is only resolved on the soliciting side (and
for the deny_imports the hub receives) / only available in the
deny_imports and deny_exports field of the remote part of a leaf node
configuration.

A function used where its value is not available fails with
ErrMappingFunctionNotAvailable.

Unlike existing subject mapping functions, those functions are expanded
to literal values at creation time (or deferred to when the leaf node
connects), rather than being executed for every message.

Resolves #8631

72012 of 88611 relevant lines covered (81.27%)

341479.88 hits per line

Coverage Regressions

Lines Coverage ∆ File
1344
77.91
0.1% src/github.com/nats-io/nats-server/server/filestore.go
912
64.34
1.23% src/github.com/nats-io/nats-server/server/opts.go
528
86.06
0.4% src/github.com/nats-io/nats-server/server/stream.go
375
85.63
-0.07% src/github.com/nats-io/nats-server/server/accounts.go
340
90.15
0.34% src/github.com/nats-io/nats-server/server/client.go
281
87.95
0.33% src/github.com/nats-io/nats-server/server/consumer.go
227
89.67
0.29% src/github.com/nats-io/nats-server/server/leafnode.go
141
82.39
0.21% src/github.com/nats-io/nats-server/server/memstore.go
87
67.16
6.44% src/github.com/nats-io/nats-server/server/subject_transform.go
42
84.93
0.34% src/github.com/nats-io/nats-server/server/auth_callout.go
39
76.97
-0.19% src/github.com/nats-io/nats-server/server/raft.go
37
90.21
0.21% src/github.com/nats-io/nats-server/server/sublist.go
31
83.83
-0.08% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
25
79.06
0.0% src/github.com/nats-io/nats-server/server/store.go
15
76.56
0.0% src/github.com/nats-io/nats-server/server/errors.go
8
91.84
-0.06% src/github.com/nats-io/nats-server/server/jetstream_batching.go
7
73.83
0.61% src/github.com/nats-io/nats-server/server/jetstream_api.go
6
93.73
-0.29% src/github.com/nats-io/nats-server/server/gateway.go
4
84.54
0.51% src/github.com/nats-io/nats-server/server/events.go
2
84.47
0.1% src/github.com/nats-io/nats-server/server/jetstream.go
2
71.7
-1.26% src/github.com/nats-io/nats-server/server/log.go
1
86.93
7.5% src/github.com/nats-io/nats-server/server/monitor.go
Jobs
ID Job ID Ran Files Coverage
1 40819170735.1 29 Oct 2026 05:47AM UTC 66
81.27
GitHub Action Run
Source Files on build 40819170735
  • Tree
  • List 66
  • Changed 32
  • Source Changed 15
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40819170735
  • 60ce2463 on github
  • Prev Build on main (#40633753420)
  • Next Build on main (#41004307383)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc