GetMainDomainName_test.go 383 B

1234567891011121314151617181920
  1. package dns
  2. import (
  3. "testing"
  4. )
  5. func TestGetMainDomainName(t *testing.T) {
  6. //prepare
  7. client := NewTestClient()
  8. args := GetMainDomainNameArgs{
  9. InputString: "go." + TestDomainName,
  10. }
  11. resp, err := client.GetMainDomainName(&args)
  12. if err == nil {
  13. t.Logf("GetMainDomainName success: %v ", resp)
  14. } else {
  15. t.Errorf("Failed to GetMainDomainName: %s", args.InputString)
  16. }
  17. }