Commit Graph

7 Commits

Author SHA1 Message Date
Chris Johnson 2fc037c81e Enable docker host discovery to work across Mac, Linux 2016-08-12 13:18:15 -04:00
Chris Johnson 1eb5e3d517 Remove the Gorp dependency
Removed the underlying Gorp package as a dependency & replaced with use of the standard database/sql driver.

This removes a dependency and makes this package very lightweight and makes database interactions very transparent. Lastly, from the standpoint of unit testing where you want to mock the database layer instead of requiring a real database, you can now easily use a package like [go-SQLMock](https://github.com/DATA-DOG/go-sqlmock) to do just that.

The tests may/not pass for Golang 1.5; it appears that the problem is Travis need to install a linter.
2016-08-11 15:06:09 -04:00
Anton Lindstrom be8bed0dab Add testable example in README
This adds a testable example for the README to be able to make the user
experience for new users better.
2016-07-21 20:39:33 +00:00
Anton Lindstrom d42994de5c Refactor parts of the code and add more tests
This is a refactor of parts of the code, some minor things such as adding
punctuation in the end of sentences and making the code a bit easier to read.

More tests has been added in the form of gometalinter which checks the code
health, style and spelling errors. The flaky cleanup test should also be fixed
with this commit.
2016-07-21 20:02:52 +00:00
Anton Lindström 269ca2e7e5 Update tests to use TravisCI
This will remove the current .drone.yml which isn't used anymore, update the
Makefile target and move tests to using `t.Skip` instead of `t.Fatal` if no
database exists during tests. This is so it's possible to develop new tests
that may not require a database.
2015-09-08 14:21:07 +00:00
Anton Lindström 31c2148d2b add step build and test to Makefile 2014-05-20 06:02:59 +00:00
Anton Lindström ef9866c6f5 initial commit 2014-01-07 17:15:27 +00:00