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

google / upb / 206 / 7
70%
master: 70%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2016 09:59PM UTC
Files 63
Run time 2s
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

19 Apr 2016 09:57PM UTC coverage: 79.147% (-0.2%) from 79.375%
UPB_TRAVIS_BUILD=coverage

push

travis-ci

haberman
Split upb::Arena/upb::Allocator from upb::Environment. (#58)

* Split upb::Arena/upb::Allocator from upb::Environment.

This will allow arenas and allocators to be used
independently of environments, which will be important
for an upcoming change (a message representation).
Overall this design feels cleaner that the previous
Environment/SeededAllocator design.

As part of this change, moved all allocations in upb
to use a global allocator instead of hard-coding
malloc/free.  This will allow injecting OOM faults
for more robust testing.

One place that doesn't use the global allocator is
the tracked ref code.  Instead of its previous approach
of CHECK_OOM() after every malloc() or table insert, it
simply uses an allocator that does this automatically.

I moved Allocator/Arena/Environment into upb.h.
This seems principled since these are the only types
in upb whose size is directly exposed to users, since
they form the basis of memory allocation strategy.

* Cleaned up some header includes and fixed more malloc -> upb_gmalloc().

* Changes from PR review.

* Don't use UINTPTR_MAX or UINT64_MAX.

* Punt on adding line/file for now.

* We actually can't store (uint64_t)-1, update comment and test.

5936 of 7500 relevant lines covered (79.15%)

329498.37 hits per line

Source Files on job 206.7 (UPB_TRAVIS_BUILD=coverage)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 206
  • Travis Job 206.7
  • 68bc62a7 on github
  • Prev Job for UPB_TRAVIS_BUILD=coverage on master (#198.7)
  • Next Job for UPB_TRAVIS_BUILD=coverage on master (#207.7)
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