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

turnage / graw / 127 / 1
74%
master: 4%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/golang.org/x/net-0.38.0
DEFAULT BRANCH: master
Ran 19 Nov 2016 05:55AM UTC
Files 16
Run time 0s
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

19 Nov 2016 05:44AM UTC coverage: 83.71% (+2.7%) from 80.995%
127.1

push

travis-ci

turnage
The great change.

This change reorganizes graw into to publicly exposed packages. There will be a
"reddit" package responsible for defining Reddit data types and direct access
to the reddit api subset I need to wrap to make graw.

I have struggled for some time to determine a good way to organize graw's api,
and decided that the fundamental issues are two:

1. Abstracting reddit is a big task in itself, and combining it with the bot
   platform api makes any api I attempt more difficult to get right.
2. The graw api was at first intended intended for only reactive bots that
   receive an event and enqueue a response it has no control over the timing
   for. I added the ability for users to invoke methods like Reply() later
   because sometimes it was useful to wait some time and do an action.

   Based on my experiences trying to fix the painful issues that came from this,
   I think it is a flawed ambition to combine active and reactive styles in the
   same api.

As a result, there is this great change, which addresses the two issues above
with two solutions:

1. Creating a separate Reddit package that will handle data types and api
   interactions with no flow control or concept of "handlers" will allow me and
   others much more freedom to build good bots and bot tooling, though I fear
   the day someone asks me to add something to it.
2. The idea of a bot being a struct that implements interfaces and graw duck
   inspecting it is absolutely terrible. I can't believe I even tried to make
   that good. It fights with Go at too many levels (Go is very...well, it's very
   something).

   Instead I'm going to think with gophers (oh god what have I said) and conform
   to community expectations more instead of trying to build my own development
   environment for people. I don't log enough for that anyway.

370 of 442 relevant lines covered (83.71%)

55.02 hits per line

Source Files on job 127.1
  • Tree
  • List 0
  • Changed 7
  • Source Changed 7
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 127
  • Travis Job 127.1
  • 9bb7bfdd on github
  • Prev Job for on mercury (#125.1)
  • Next Job for on mercury (#128.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