Skip to content

Commit fb9862a

Browse files
save local changes
1 parent b6b718c commit fb9862a

File tree

238 files changed

+40354
-40354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+40354
-40354
lines changed

v2003/tests/api_client_test.go

+42-42
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
package api_test
2-
3-
import (
4-
"testing"
5-
6-
"github.com/aspose-words-cloud/aspose-words-cloud-go/v2003/api"
7-
"github.com/aspose-words-cloud/aspose-words-cloud-go/v2003/api/models"
8-
)
9-
10-
func TestAppSidAndAppKey(t *testing.T) {
11-
p := []struct {
12-
appKey string
13-
appSid string
14-
}{
15-
{"", "x"},
16-
{"x", ""},
17-
}
18-
for _, cp := range p {
19-
config := models.Configuration{
20-
AppKey: cp.appKey,
21-
AppSid: cp.appSid,
22-
}
23-
_, err := api.NewAPIClient(&config)
24-
25-
if err == nil {
26-
t.Error(err)
27-
}
28-
}
29-
}
30-
31-
func TestBaseUrl(t *testing.T) {
32-
config := models.Configuration{
33-
AppKey: "x",
34-
AppSid: "x",
35-
BaseUrl: "x",
36-
}
37-
_, err := api.NewAPIClient(&config)
38-
39-
if err == nil {
40-
t.Error(err)
41-
}
42-
}
1+
package api_test
2+
3+
import (
4+
"testing"
5+
6+
"github.com/aspose-words-cloud/aspose-words-cloud-go/v2003/api"
7+
"github.com/aspose-words-cloud/aspose-words-cloud-go/v2003/api/models"
8+
)
9+
10+
func TestAppSidAndAppKey(t *testing.T) {
11+
p := []struct {
12+
appKey string
13+
appSid string
14+
}{
15+
{"", "x"},
16+
{"x", ""},
17+
}
18+
for _, cp := range p {
19+
config := models.Configuration{
20+
AppKey: cp.appKey,
21+
AppSid: cp.appSid,
22+
}
23+
_, err := api.NewAPIClient(&config)
24+
25+
if err == nil {
26+
t.Error(err)
27+
}
28+
}
29+
}
30+
31+
func TestBaseUrl(t *testing.T) {
32+
config := models.Configuration{
33+
AppKey: "x",
34+
AppSid: "x",
35+
BaseUrl: "x",
36+
}
37+
_, err := api.NewAPIClient(&config)
38+
39+
if err == nil {
40+
t.Error(err)
41+
}
42+
}

0 commit comments

Comments
 (0)