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

avnomad / dop-parser / 21
95%

Build:
DEFAULT BRANCH: default
Ran 18 Jul 2020 04:29AM UTC
Jobs 2
Files 10
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

pending completion
21

push

travis-ci

avnomad
First take on using D's safety attributes.

Annotated all modules with the `@safe` attribute although I had to use the
`@trusted` and `@system` attributes on some functions for the program to
compile.

Intuitively all code written so far in this project should be safe as I haven't
used pointer arithmetic, type punning or similar constructs, but I'm getting
some unexpected and not very helpful errors from some code unless I use lower
safety levels for it. e.g. the compiler complains about standard library
functions like `stdin.byLineCopy` and `object.keys`.

In addition to the above, catching `Throwable` isn't allowed in `@safe` code and
since I need it to report errors in tests, the `catch` in question had to be
moved out of the `runUnitTests` function and put into a separate function that
was declared `@trusted`. That should minimize the `@trusted` code.

More work is needed to understand how to make all code `@safe`.

--HG--
branch : enhancement

221 of 232 relevant lines covered (95.26%)

3472.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21.1 18 Jul 2020 04:29AM UTC 0
95.26
Travis Job 21.1
2 21.2 18 Jul 2020 04:29AM UTC 0
0.0
Travis Job 21.2
Source Files on build 21
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #21
  • efad1bdc on github
  • Prev Build on default (#20)
  • Next Build on default (#22)
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

© 2025 Coveralls, Inc