Go
3
Вклад в тег
mock.ExpectExec(`INSERT INTO Products \(model, company, price\) values \('\$1', \$2, \$3\)`).
WithArgs(tt.args.model, tt.args.company, tt.args.price).
WillReturnResult(sqlmock.NewResult(1, 1))