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

tpm2-software / tpm2-tss / 952
36%

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

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

Jobs
ID Job ID Ran Files Coverage
1 952.1 08 Mar 2018 02:55AM UTC 0
44.93
Travis Job 952.1
Source Files on build 952
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #952
  • 5477c2aa on github
  • Prev Build on master (#950)
  • Next Build on master (#954)
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