inc coreverage of operation
This commit is contained in:
parent
4478f3496b
commit
8930b00ead
|
@ -92,10 +92,12 @@ class TDTestCase:
|
||||||
col_list = [ 'col1' , 'col2' , 'col3' , 'col4' , 'col5' , 'col6' , 'col7' , 'col8' , 'col9' , 'col11' , 'col12' , 'col13' , 'col14' , '1' , '1.1' , 'NULL' ]
|
col_list = [ 'col1' , 'col2' , 'col3' , 'col4' , 'col5' , 'col6' , 'col7' , 'col8' , 'col9' , 'col11' , 'col12' , 'col13' , 'col14' , '1' , '1.1' , 'NULL' ]
|
||||||
op_list = [ '+' , '-' , '*' , '/' , '%' ]
|
op_list = [ '+' , '-' , '*' , '/' , '%' ]
|
||||||
err_list = [ 'col7' , 'col8' , 'col9' , 'NULL' ]
|
err_list = [ 'col7' , 'col8' , 'col9' , 'NULL' ]
|
||||||
|
order_lsit = [ ' order by ts ', ' order by ts desc ', ' order by ts asc ']
|
||||||
for i in col_list :
|
for i in col_list :
|
||||||
for j in col_list :
|
for j in col_list :
|
||||||
for k in op_list :
|
for k in op_list :
|
||||||
sql = " select %s %s %s from test1 " % ( i , k , j )
|
for l in order_lsit :
|
||||||
|
sql = " select %s %s %s from test1 %s" % ( i , k , j , l )
|
||||||
if i in err_list or j in err_list:
|
if i in err_list or j in err_list:
|
||||||
tdSql.error(sql)
|
tdSql.error(sql)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue