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

tarantool / tarantool / 5953353203
88%

Build:
DEFAULT BRANCH: master
Ran 23 Aug 2023 03:37PM UTC
Jobs 1
Files 492
Run time 17s
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

23 Aug 2023 03:27PM UTC coverage: 86.299% (+0.02%) from 86.277%
5953353203

push

github

alyapunov
sql: refactor update_view_references a bit

The function update_view_references is called when an SQL view
is created or dropped. The goal of this function is to modify
(increment or decrement) view_ref_count member of spaces that
the view references.

There were a several issues that deserves to be refactored:
* By design in case of error it left the job partially done, so
  some space references were modified while some other - not.
  Although there was no bug since special steps were made in case
  of error, this pattern is inconvenient and should be avoided.
* In case of error the failing space name was returned via special
  argument which is not flexible and even requires allocation.
* Another argument - suppress_error - has actually never
  suppressed any error because the only case when an error could
  occur is creation of a view, which used suppress_error = false.
* Fail of that function was not actually covered with tests.

So this commit:
* Makes the function to do all or nothing.
* Forces the function to set diag by itself in case of error.
* Removes suppress_error argument while adding several asserts.\
* Adds a small test that fulfills coverage.

NO_DOC=refactoring
NO_CHANGELOG=reafactoring

63852 of 115390 branches covered (55.34%)

18 of 18 new or added lines in 1 file covered. (100.0%)

95532 of 110699 relevant lines covered (86.3%)

2654227.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5953353203.1 23 Aug 2023 03:37PM UTC 0
86.3
GitHub Action Run
Source Files on build 5953353203
Detailed source file information is not available for this build.
  • Back to Repo
  • 392fe93a on github
  • Prev Build on master (#5953271144)
  • Next Build on master (#5956579473)
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