config_test.go 218 B

1234567891011
  1. package main
  2. import "testing"
  3. func TestConfig(t *testing.T) {
  4. // check that the sample config parses
  5. err := configReader("dns/geodns.conf.sample")
  6. if err != nil {
  7. t.Fatalf("Could not read config: %s", err)
  8. }
  9. }