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

google / upb / 206
70%

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

pending completion
206

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.

382 of 382 new or added lines in 17 files covered. (100.0%)

5936 of 7500 relevant lines covered (79.15%)

329498.37 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
upb/symtab.c
1
100.0
upb/table.c
2
100.0
upb/pb/textprinter.c
2
100.0
upb/refcounted.c
11
100.0
upb/descriptor/reader.c
22
100.0
upb/upb.c
28
100.0
upb/def.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
upb/upb.c
1
100.0
upb/table.int.h
2
100.0
upb/table.c
Jobs
ID Job ID Ran Files Coverage
7 206.7 (UPB_TRAVIS_BUILD=coverage) 19 Apr 2016 09:59PM UTC 0
79.15
Travis Job 206.7
Source Files on build 206
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #206
  • 68bc62a7 on github
  • Prev Build on master (#198)
  • Next Build on master (#207)
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