config_test.go 272 B

123456789101112131415
  1. package main
  2. import (
  3. "testing"
  4. "github.com/abh/geodns/v3/appconfig"
  5. )
  6. func TestConfig(t *testing.T) {
  7. // check that the sample config parses
  8. err := appconfig.ConfigReader("dns/geodns.conf.sample")
  9. if err != nil {
  10. t.Fatalf("Could not read config: %s", err)
  11. }
  12. }