44 lines
814 B
Go
44 lines
814 B
Go
package ebaiapi
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.rosy.net.cn/baseapi/utils"
|
|
)
|
|
|
|
func TestCommonShopCities(t *testing.T) {
|
|
result, err := api.CommonShopCities(75)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
} else {
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|
|
}
|
|
|
|
func TestCommonShopCategoriesGet(t *testing.T) {
|
|
result, err := api.CommonShopCategoriesGet()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
} else {
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|
|
}
|
|
|
|
func TestCommonShopCategories(t *testing.T) {
|
|
result, err := api.CommonShopCategories(166, 2)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
} else {
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|
|
}
|
|
|
|
func TestCommonBusinessCategories(t *testing.T) {
|
|
result, err := api.CommonBusinessCategories(166)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
} else {
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|
|
}
|