(x *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestGroupCreate(x *testing.T) { |
| 22 | t := openTopom() |
| 23 | defer t.Close() |
| 24 | |
| 25 | assert.Must(t.CreateGroup(0) != nil) |
| 26 | assert.Must(t.CreateGroup(-1) != nil) |
| 27 | assert.Must(t.CreateGroup(10000) != nil) |
| 28 | |
| 29 | assert.MustNoError(t.CreateGroup(1)) |
| 30 | assert.Must(t.CreateGroup(1) != nil) |
| 31 | |
| 32 | g := getGroup(t, 1) |
| 33 | assert.Must(g.Id == 1) |
| 34 | assert.Must(g.Promoting.State == models.ActionNothing) |
| 35 | assert.Must(len(g.Servers) == 0) |
| 36 | } |
| 37 | |
| 38 | func TestGroupRemove(x *testing.T) { |
| 39 | t := openTopom() |
nothing calls this directly
no test coverage detected