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

tpm2-software / tpm2-tss / 952 / 1
36%
master: 36%

Build:
DEFAULT BRANCH: master
Ran 08 Mar 2018 02:55AM UTC
Files 738
Run time 24s
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

08 Mar 2018 02:55AM UTC coverage: 44.935% (+0.05%) from 44.887%
952.1

push

travis-ci

Tadeusz Struk
tcti: Refactor the return paths in the 'receive' functions.

The initial implementation had every return path from this function
`goto` the label at the end of the function. Some of these cases were
returning some form of 'success' while others were errors. This required
a conditional after the label to check to see whether the state of the
TCTI should transition to the TRANSMIT state or whether it should remain
in the RECEIVE state so that the user can attempt to get the response
again.

This conditional at the end of the function is unusual and by defying
convention it causes confusion for developers. This commit re-works the
return paths from the Receive functions in both TCTI such that the label
at the end of the function represents the code path taken when the TCTI
should be transitioned to the TRANSMIT state. All other code paths
return directly by using the `return` statement.

Functionally the two approaches are equivalent but this new strategy is
easier to read.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>

10628 of 23652 relevant lines covered (44.93%)

38.62 hits per line

Source Files on job 952.1
  • Tree
  • List 0
  • Changed 9
  • Source Changed 5
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 952.1
  • 5477c2aa on github
  • Prev Job for on master (#950.1)
  • Next Job for on master (#954.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