Ai
2 Star 10 Fork 0

tencentcloud/tencentcloud-sdk-go

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
types_test.go 448 Bytes
Copy Edit Raw Blame History
ZhiQiang Fan authored 2017-12-14 17:02 +08:00 . introduce Go SDK for Tencent Cloud API
package common
import (
"testing"
)
func TestStringPtrsValues(t *testing.T) {
vals := []string{"a", "b", "c", "d"}
ptrs := StringPtrs(vals)
for i := 0; i < len(vals); i++ {
if *ptrs[i] != vals[i] {
t.Errorf("[ERROR] value %s != ptr value %s", vals[i], *ptrs[i])
}
}
newVals := StringValues(ptrs)
for i := 0; i < len(vals); i++ {
if newVals[i] != vals[i] {
t.Errorf("[ERROR] new val %s != val %s", newVals[i], vals[i])
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-go.git
git@gitee.com:tencentcloud/tencentcloud-sdk-go.git
tencentcloud
tencentcloud-sdk-go
tencentcloud-sdk-go
master

Search