pkg/ipam{,test}: improve error handling and tests
authorStefan Junker <mail@stefanjunker.de>
Tue, 21 Jun 2016 23:28:38 +0000 (16:28 -0700)
committerStefan Junker <mail@stefanjunker.de>
Fri, 22 Jul 2016 22:17:22 +0000 (15:17 -0700)
commit96867eae05dcb47679aea2777fa72193fcb7b9f2
tree88d1fbcd906a2e398639e64924b493c9ec5ad49a
parent1c1424c4726bbb35fa76d0f8a9e3d18504f920bd
pkg/ipam{,test}: improve error handling and tests

* _suite.go and _test.go file should be in the same package, using the
  _test package for that, which requires some fields and methods to be
  exported
* Introduce error type for cleaner error handling
* test adaptions for error type checking
pkg/ipam/ipam.go
pkg/ipam/ipam_test.go