You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, guys, i wrote one pice of code as below, but i couldn't use WithArgs like this:
mock.ExpectQuery(query2).WithArgs(122).WillReturnRows(rs2),so i have to use it like this:
query2:= "SELECT (.+) as count FROM payment p, purchase_order po WHERE p.order_id = po.id AND p.order_id = "+strconv.Itoa(orderId)+" ORDER BY p.payment_date DESC "
Hi, guys, i wrote one pice of code as below, but i couldn't use WithArgs like this:
mock.ExpectQuery(query2).WithArgs(122).WillReturnRows(rs2),so i have to use it like this:
query2:= "SELECT (.+) as count FROM payment p, purchase_order po WHERE p.order_id = po.id AND p.order_id = "+strconv.Itoa(orderId)+" ORDER BY p.payment_date DESC "
Is there anything wrong with this code?Thx
`
func TestOrderList(t *testing.T) {
t.Parallel()
orderModel := CreateOrderFactory(t)
defer db.Close()
}
`
The text was updated successfully, but these errors were encountered: