@@ -83,7 +83,7 @@ func TestDBInfoGet(t *testing.T) {
83
83
require .NoError (t , err )
84
84
defer cancel ()
85
85
86
- t .Run ("createSchema " , func (t * testing.T ) {
86
+ t .Run ("create schema " , func (t * testing.T ) {
87
87
conn , err := mysql .Connect (context .Background (), & cp )
88
88
require .NoError (t , err )
89
89
qr , err := conn .ExecuteFetch ("show databases" , 1000 , false )
@@ -100,19 +100,17 @@ func TestDBInfoGet(t *testing.T) {
100
100
101
101
dbh := NewDBHelper (& cp )
102
102
103
- t .Run ("getTableSizes " , func (t * testing.T ) {
103
+ t .Run ("table sizes " , func (t * testing.T ) {
104
104
ts , err := dbh .getTableSizes ()
105
105
require .NoError (t , err )
106
- require .NotNil (t , ts )
107
106
require .Len (t , ts , 16 )
108
107
require .Equal (t , 6 , ts ["language" ])
109
108
require .Equal (t , 1000 , ts ["film" ])
110
109
})
111
110
112
- t .Run ("getColumnInfo " , func (t * testing.T ) {
111
+ t .Run ("column info " , func (t * testing.T ) {
113
112
tc , err := dbh .getColumnInfo ()
114
113
require .NoError (t , err )
115
- require .NotNil (t , tc )
116
114
require .Len (t , tc , 16 )
117
115
118
116
require .Len (t , tc ["language" ], 3 )
@@ -141,10 +139,9 @@ func TestDBInfoGet(t *testing.T) {
141
139
require .Equal (t , "default_generated on update current_timestamp" , colLastUpdate .Extra )
142
140
})
143
141
144
- t .Run ("getGlobalVariables " , func (t * testing.T ) {
142
+ t .Run ("global variables " , func (t * testing.T ) {
145
143
gv , err := dbh .getGlobalVariables ()
146
144
require .NoError (t , err )
147
- require .NotNil (t , gv )
148
- require .NotEmpty (t , (gv ))
145
+ require .NotEmpty (t , gv )
149
146
})
150
147
}
0 commit comments