package ddns import ( "reflect" "testing" ) func TestGetDNSSetting(t *testing.T) { tests := []struct { name string want DNSSetting wantErr bool }{ // TODO: Add test cases. } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got, err := GetDNSSetting() if (err != nil) != tt.wantErr { t.Errorf("GetDNSSetting() error = %v, wantErr %v", err, tt.wantErr) return } if !reflect.DeepEqual(got, tt.want) { t.Errorf("GetDNSSetting() = %v, want %v", got, tt.want) } }) } }