Several tests and some tweaks
Summary
- Update the golang version in the
go.mod
, and update the base builder docker image to get newer timezone data and ca certs. - Add tons of tests to get more then 90% coverage on most packages
- Remove the representative interface since there's really no need to try to get this concurrency working.
- Uptake the new logging changes.
Testing
$ ./run_tests.sh
? gitlab.greeson.xyz/highsaltlevels/saltbot [no test files]
? gitlab.greeson.xyz/highsaltlevels/saltbot/handler [no test files]
ok gitlab.greeson.xyz/highsaltlevels/saltbot/expirychecker 1.015s coverage: 100.0% of statements
ok gitlab.greeson.xyz/highsaltlevels/saltbot/giphy 0.008s coverage: 100.0% of statements
ok gitlab.greeson.xyz/highsaltlevels/saltbot/jeopardy 0.008s coverage: 100.0% of statements
ok gitlab.greeson.xyz/highsaltlevels/saltbot/poll 0.008s coverage: 94.7% of statements
ok gitlab.greeson.xyz/highsaltlevels/saltbot/reminder 0.009s coverage: 96.2% of statements
ok gitlab.greeson.xyz/highsaltlevels/saltbot/transformer 0.008s coverage: 94.6% of statements
ok gitlab.greeson.xyz/highsaltlevels/saltbot/util 0.011s coverage: 91.3% of statements
ok gitlab.greeson.xyz/highsaltlevels/saltbot/youtube 0.006s coverage: 100.0% of statements