MCPcopy Index your code
hub / github.com/dearcode/candy / TestCreateGroup

Function TestCreateGroup

client/candy_test.go:311–323  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

309}
310
311func TestCreateGroup(t *testing.T) {
312 for i := 0; i < 5; i++ {
313 gname := fmt.Sprintf("群组%v_%v", i, time.Now().Unix())
314 gid, err := client.CreateGroup(gname)
315 if err != nil {
316 t.Fatalf("CreateGroup error:%v", err)
317 }
318
319 t.Logf("CreateGroup success, gid:%v", gid)
320 }
321
322 t.Logf("CreateGroup All success")
323}
324
325func TestLoadGroupList(t *testing.T) {
326 data, err := client.LoadGroupList()

Callers

nothing calls this directly

Calls 1

CreateGroupMethod · 0.65

Tested by

no test coverage detected