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

Zilliqa / scilla / 999 / 1
61%
master: 61%

Build:
DEFAULT BRANCH: master
Ran 11 Feb 2019 12:01PM UTC
Files 37
Run time 3s
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

11 Feb 2019 11:58AM UTC coverage: 80.031% (+0.3%) from 79.733%
999.1

push

travis-ci-com

jjcnn
Check contracts for payment acceptances (#409)

* Check contracts for payment acceptances

If a contract has no transitions which accept payment, raise a warning.

Also if a transition has any code path with potentially multiple
"accept" statements in it, raise a warning.  We do not raise an error
since it is not possible via static analysis to know for sure in all
cases whether multiple "accept" statements would be reached if
present, since this can be dependent on conditions which are only
known at run-time.  As a silly example, this transition may or may not
attempt to accept twice:

    transition donate_once_or_twice(twice : Bool)
      accept;
      match twice with
      | True => accept
      | False =>
        e = { _eventname : "Thanks" };
        event e
      end
    end

In contrast, this transition is guaranteed to accept only once:

    transition donate_once(switch : Bool)
      match switch with
      | True => accept
      | False =>
        e = { _eventname : "Thanks" };
        event e
      end;
      match switch with
      | False => accept
      | True =>
        e = { _eventname : "Thanks" };
        event e
      end
    end

however it would be very difficult to implement analysis which catches
cases like this.

* fix bug in check_accepts which missed some code paths

3138 of 3921 relevant lines covered (80.03%)

9689.95 hits per line

Source Files on job 999.1
  • Tree
  • List 0
  • Changed 28
  • Source Changed 1
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 314
  • Travis Job 999.1
  • 85074882 on github
  • Prev Job for on master (#997.1)
  • Next Job for on master (#1004.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