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

google / benchmark / 2274 / 1
92%
master: 92%

Build:
DEFAULT BRANCH: master
Ran 14 Jan 2020 08:25PM UTC
Files 40
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

14 Jan 2020 08:21PM UTC coverage: 92.041%. Remained the same
COMPILER=g++ C_COMPILER=gcc BUILD_TYPE=Coverage

push

travis-ci

LebedevRI
Alias CMake Targets. Fixes #921 (#926)

* add Jordan Williams to both CONTRIBUTORS and AUTHORS

* alias benchmark libraries

Provide aliased CMake targets for the benchmark and benchmark_main targets.
The alias targets are namespaced under benchmark::, which is the namespace when they are exported.
I chose not to use either the PROJECT_NAME or the namespace variable but to hard-code the namespace.
This is because the benchmark and benchmark_main targets are hard-coded by name themselves.
Hard-coding the namespace is also much cleaner and easier to read.

* link to aliased benchmark targets

It is safer to link against namespaced targets because of how CMake interprets the double colon.
Typo's will be caught by CMake at configuration-time instead of during compile / link time.

* document the provided alias targets

* add "Usage with CMake" section in documentation

This section covers linking against the alias/import CMake targets and including them using either find_package or add_subdirectory.

* format the "Usage with CMake" README section

Added a newline after the "Usage with CMake" section header.
Dropped the header level of the section by one to make it a direct subsection of the "Usage" section.
Wrapped lines to be no longer than 80 characters in length.

1804 of 1960 relevant lines covered (92.04%)

6132906.32 hits per line

Source Files on job 2274.1 (COMPILER=g++ C_COMPILER=gcc BUILD_TYPE=Coverage)
  • Tree
  • List 0
  • Changed 14
  • Source Changed 0
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2087
  • Travis Job 2274.1
  • daff5fea on github
  • Prev Job for COMPILER=g++ C_COMPILER=gcc BUILD_TYPE=Coverage on master (#2271.1)
  • Next Job for COMPILER=g++ C_COMPILER=gcc BUILD_TYPE=Coverage on master (#2279.1)
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