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

windingtree / wt-contracts / 74 / 2
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 21 Nov 2017 04:20PM UTC
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

21 Nov 2017 04:14PM UTC coverage: 96.957%. Remained the same
SOLIDITY_COVERAGE=true

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

Source Files on job 74.2 (SOLIDITY_COVERAGE=true)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 74
  • Travis Job 74.2
  • 7efa202e on github
  • Prev Job for SOLIDITY_COVERAGE=true on master (#73.2)
  • Next Job for SOLIDITY_COVERAGE=true on master (#78.2)
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