问题标签 [go-sqlmock]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
41 问题
0
投票
0
回答
8
浏览
go-sqlmock - SqlMock : 没想到,下一个期望是:ExpectedBegin => 期望数据库事务Begin
我正在编写测试用例,但有一个问题!-----使用查询'SELECT `xxxx' 调用 Prepare 语句,不是预期的,下一个预期是:ExpectedBegin => 预期数据库事务开始。在此处输入图像描述