func TestTableGroupSliceLoad(t *testing.T) { db := csdb.MustConnectTest() defer db.Close() dbrSess := dbr.NewConnection(db, nil).NewSession(nil) var groups store.TableGroupSlice groups.Load(dbrSess) assert.True(t, groups.Len() > 2) for _, s := range groups { assert.True(t, len(s.Name) > 1) } }
func TestTableGroupSliceLoad(t *testing.T) { dbc := csdb.MustConnectTest() defer dbc.Close() dbrSess := dbc.NewSession() var groups store.TableGroupSlice rows, err := groups.Load(dbrSess) assert.NoError(t, err) assert.True(t, rows > 0) assert.True(t, groups.Len() > 2) for _, s := range groups { assert.True(t, len(s.Name) > 1) } }