瀏覽代碼

Check that the sample configuration parses

Ask Bjørn Hansen 8 年之前
父節點
當前提交
2d4d676ce9
共有 1 個文件被更改,包括 11 次插入0 次删除
  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)
+	}
+}