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

uber-go / zap / 194
97%

Build:
DEFAULT BRANCH: master
Ran 23 May 2016 06:27PM UTC
Jobs 3
Files 10
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

pending completion
194

push

travis-ci

prashantv
Fix the 'Bool' method output by checking the field value (#53)

* Fix #52 by checking the field value in Bool method

>> According to the issue #52, the logger was always reporting a boolean
>> key-value pair as 'true'.

>> It was happening because of the hardcoded field value as 1, in the file
>> ['field.go'](https://github.com/uber-go/zap/blob/master/field.go#L55).

>> Test cases were unable to detect it probably because the test case is
>> giving input [only
>> as](https://github.com/uber-go/zap/blob/master/field_test.go#L75-L78)
>> 'true' type.

* Use golang's zero-values to pass the Travis build

* Add unit tests for Bool method in field.go

Methods 'TestTrueBoolField' and 'TestFalseBoolField' will check for
equality of expected and returned boolean values
(true and false respectively).

Method 'TestUnlikeBoolField' will check for unequality of different
boolean value pairs.

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

449 of 466 relevant lines covered (96.35%)

40184.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 194.1 23 May 2016 06:27PM UTC 0
96.35
Travis Job 194.1
2 194.2 23 May 2016 06:27PM UTC 0
96.35
Travis Job 194.2
3 194.3 23 May 2016 06:28PM UTC 0
96.35
Travis Job 194.3
Source Files on build 194
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #194
  • 07c03a18 on github
  • Prev Build on master (#193)
  • Next Build on master (#199)
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