go-ddns-client/module/ddns/ddns_test.go

29 lines
531 B
Go
Raw Normal View History

2019-05-09 08:13:25 +00:00
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)
}
})
}
}