You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
331 B
27 lines
331 B
package service
|
|
|
|
import (
|
|
"log"
|
|
"testing"
|
|
)
|
|
|
|
func TestQueryPublishListInHBase(t *testing.T) {
|
|
Init()
|
|
|
|
res, err := QueryPublishListInHBase(int64(1111111111111111111))
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
log.Println(len(res))
|
|
|
|
cnt := 0
|
|
for _, v := range res {
|
|
log.Println(v.GetId())
|
|
cnt++
|
|
|
|
if cnt > 10 {
|
|
break
|
|
}
|
|
}
|
|
}
|
|
|