Commit Graph

24 Commits (4c91c5787547219e13bce8e17bd1d0049e3918e6)

Author SHA1 Message Date
Chris Bednarski 1e3afd46c3 Fix example test error 6 years ago
Chris Bednarski df6e535d57 Fix use of %s instead of %+v, from go 1.8 vet 8 years ago
Chris Bednarski 831904824c Change parsing to return errors instead of silently truncating the hosts file; fixes #23 8 years ago
Chris Bednarski 182feec8c1 Change some tests to use testify/assert 9 years ago
Chris Bednarski 74f1e08361 Renamed some variables so the intent is clearer 9 years ago
Chris Bednarski 8eb33b712c Added dump and apply commands to provide JSON I/O 9 years ago
Chris Bednarski 5ebed2ed94 Expanded tests for remove to test the full API 9 years ago
Chris Bednarski 9ff5aa8d6a Added tests for and fixed implementation for Add behavior with dupes and conflicts 9 years ago
Chris Bednarski beb2cd3397 Removed debug output 9 years ago
Chris Bednarski 9aebb4b8ff Fixed sorting so we can push 127 to the top the list 9 years ago
Chris Bednarski 1377ff4274 Added MakeSurrogateIP to help with sorting 9 years ago
Chris Bednarski c2dc0f5272 Changed format to use byte arrays 9 years ago
Chris Bednarski dffba8fcba Tweaked some comments for godoc 9 years ago
Chris Bednarski b1645b0f35 Fixed a sort bug and added some more tests 9 years ago
Chris Bednarski ebc96283b0 Clean up some golint errors 9 years ago
Chris Bednarski f2b81f9cd5 Implemented domain sorting and added doc comments to hostlist 9 years ago
Chris Bednarski 7f4f5d2b2e Changed to *V commands to switch between ipv4 and ipv6 functionality 9 years ago
Chris Bednarski 293dcf6bad Updated test name since we test both 9 years ago
Chris Bednarski d1c7217fa4 Added some tests 9 years ago
Chris Bednarski c90989dea0 Implemented remove, copied format, tests, and stubs 9 years ago
Chris Bednarski 6b38e95bba Fixed add, remove is now failing the test (as expected) 9 years ago
Chris Bednarski f5dea78ac3 Some preliminary work and a lot of commented code 9 years ago
Chris Bednarski ac2093932c Changed ip from string to net.IP and changed hostnames to pointers 9 years ago
Chris Bednarski 5d8bcfff3a Separated some tests from the hostfile_test file 9 years ago