douchun3680 2016-09-01 14:20
浏览 261
已采纳

在GoLang的sqlmock中获取错误

I am writing test cases for a GoLang application and i am using sqlmock for mocking the SQL queries but i am getting following error while executing go test

Params: [ call to query , was not expected, next expectation is: ExpectedBegin => expecting database transaction Begin]

Any idea on this?

  • 写回答

2条回答 默认 最新

  • dsjk3214 2016-09-04 18:12
    关注

    The error message means some SQL query was called which was not mocked.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?