Lines Matching refs:conf
20 name: "testdata/resolv.conf",
32 name: "testdata/domain-resolv.conf",
42 name: "testdata/search-resolv.conf",
52 name: "testdata/empty-resolv.conf",
61 name: "testdata/openbsd-resolv.conf",
75 conf := dnsReadConfig(tt.name)
76 if conf.err != nil {
77 t.Fatal(conf.err)
79 if !reflect.DeepEqual(conf, tt.want) {
80 t.Errorf("%s:\ngot: %+v\nwant: %+v", tt.name, conf, tt.want)
86 conf := dnsReadConfig("a-nonexistent-file")
87 if !os.IsNotExist(conf.err) {
88 t.Errorf("missing resolv.conf:\ngot: %v\nwant: %v", conf.err, os.ErrNotExist)
90 conf.err = nil
97 if !reflect.DeepEqual(conf, want) {
98 t.Errorf("missing resolv.conf:\ngot: %+v\nwant: %+v", conf, want)