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

tarantool / tarantool / 14036396387
88%

Build:
DEFAULT BRANCH: master
Ran 24 Mar 2025 01:37PM UTC
Jobs 1
Files 518
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

24 Mar 2025 01:22PM UTC coverage: 87.466% (-0.02%) from 87.481%
14036396387

push

github

Totktonada
config: add API to test if role is set for instance

New `has_role`, `is_router` and `is_storage` methods added to the config
module.

Closes #11288
Closes TNTP-969

@TarantoolBot document
Title: config module `has_role`, `is_router` and `is_storage` methods

`has_role(<role_name>, {instance = <instance_name})` returns true if
the instance with the name <instance_name> has role <role_name> enabled
in the current config, false if not. Second argument is optional, and
if not provided the check will be done for the instance the method is
called on.

`is_router({instance = <instance_name})` returns true if the instance
with name <instance_name> is a vshard router, according to the current
config, false if not. Argument is optional, and if not provided the
check will be done for the instance the method is called on.

`is_storage({instance = <instance_name})` returns true if the instance
with name <instance_name> is a vshard storage, according to the current
config, false if not. Argument is optional, and if not provided the
check will be done for the instance the method is called on.

70071 of 123637 branches covered (56.67%)

103173 of 117958 relevant lines covered (87.47%)

2865894.53 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
86.49
-1.35% src/box/lua/ctl.c
1
91.21
0.2% src/box/vy_scheduler.c
1
96.55
-1.15% src/lib/core/histogram.c
1
91.68
-0.11% src/lib/swim/swim.c
2
87.5
-3.41% src/box/xlog.h
2
84.53
-0.72% src/lib/core/coio.c
2
93.03
-0.1% src/lib/core/fiber.c
2
85.71
-9.52% src/lib/core/tt_sigaction.c
2
97.05
-0.2% src/lib/msgpuck/msgpuck.h
3
90.7
-0.22% src/box/applier.cc
3
84.16
-0.3% src/box/xlog.c
4
92.35
-0.18% src/box/vinyl.c
4
93.31
-1.27% src/lib/swim/swim_io.c
4
81.82
-12.12% src/lua/minifio.c
6
95.2
-1.25% src/box/vy_read_iterator.c
18
90.86
-0.51% src/box/box.cc
Jobs
ID Job ID Ran Files Coverage
1 14036396387.1 24 Mar 2025 01:37PM UTC 518
87.47
GitHub Action Run
Source Files on build 14036396387
  • Tree
  • List 518
  • Changed 30
  • Source Changed 0
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 76c82641 on github
  • Prev Build on master (#14030014033)
  • Next Build on master (#14068276858)
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