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

windingtree / wt-contracts / 74
93%

Build:
DEFAULT BRANCH: master
Ran 21 Nov 2017 04:20PM UTC
Jobs 1
Files 13
Run time 1s
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
74

push

travis-ci

adklempner
modify tests for Hotel.sol to test for onlyOwner (#155)

* modify tests for Hotel.sol to test for onlyOwner

The tests for non-owner execution were using the `callHotel` function in `WTIndex.sol`, so they were actually testing that `msg.sender` exists in the `hotelsByManager` mapping. This commit changes the tests in `hotel.js` to execute functions directly on the `Hotel.sol` contract with a non-owner, in order to test that it's public functions are protected by the `onlyOwner` modifier.

This commit also adds tests to `WTIndex.js` that test the `callHotel` function directly.

* swap test order to clean up the diff

* fix invalidOpcode asserts

67 of 72 branches covered (93.06%)

Branch coverage included in aggregate %.

156 of 158 relevant lines covered (98.73%)

25.47 hits per line

Jobs
ID Job ID Ran Files Coverage
2 74.2 (SOLIDITY_COVERAGE=true) 21 Nov 2017 04:20PM UTC 0
96.96
Travis Job 74.2
Source Files on build 74
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #74
  • 7efa202e on github
  • Prev Build on master (#73)
  • Next Build on master (#78)
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