Commit Graph

18 Commits (4c91c5787547219e13bce8e17bd1d0049e3918e6)

Author SHA1 Message Date
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 5df9c0f798 Fixed some bugs with the default windows hosts file 9 years ago
Chris Bednarski ef672fb8dc Updated hosts path test for windows 9 years ago
Chris Bednarski 38416be92d Ignore hostess.exe for windows builds
Ignore test case for windows since windows hosts file is empty by default
9 years ago
Chris Bednarski cb473d396d Tweak some help text and variable names 9 years ago
Chris Bednarski 06850d8e7c Add a trailing newline to the test case 9 years ago
Chris Bednarski 930ad18681 Uncommented test and fixed test case to match intended behavior 9 years ago
Chris Bednarski 4867ad3e62 Changed TestTrimWS to use Diff for output 9 years ago
Chris Bednarski c2dc0f5272 Changed format to use byte arrays 9 years ago
Chris Bednarski 60c5e85bc5 Added filter functions
- Filter by IP
- Filter by Domain
- Filter by Domain and IPv4/6
- Also move GetHostsPath to NewHostfile
- Also Removed a bunch of bad tests
9 years ago
Chris Bednarski 2e11cd9fae Uncommented hostfile tests so we can make things work agian. 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 8632ff2f9a Moved other hostname test to hostname_test 9 years ago
Chris Bednarski 5d8bcfff3a Separated some tests from the hostfile_test file 9 years ago
Chris Bednarski b78c4b29ce Changed test to be in hostess_test package and updated tests to use public interface 9 years ago
Chris Bednarski 3863a6ed21 Renamed hostess_test to hostfile_test so we can separate some of the tests 9 years ago