Przeglądaj źródła

Check that the sample configuration parses

Ask Bjørn Hansen 8 lat temu
rodzic
commit
2d4d676ce9
1 zmienionych plików z 11 dodań i 0 usunięć
  1. 11 0
      config_test.go

+ 11 - 0
config_test.go

@@ -0,0 +1,11 @@
+package main
+
+import "testing"
+
+func TestConfig(t *testing.T) {
+	// check that the sample config parses
+	err := configReader("dns/geodns.conf.sample")
+	if err != nil {
+		t.Fatalf("Could not read config: %s", err)
+	}
+}