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)
commit7ea07a6405f886a2f18f7497cb5416de1439e61d
tree45ca3f4667f528359910fb046291159551a68ccc
parent75f1fa22602eb2b8d3c3153e52c958a489904baf
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
ipam/ipam.go
ipam/ipam_test.go