Mocking XORM Issue #2045
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#2045
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I got errors in my unit test when mocking xorm using
gopkg.in/DATA-DOG/go-sqlmock
. I found this issue https://gitea.com/xorm/xorm/issues/1276 that suggest to usegopkg.in/testfixtures.v2
as a mocking library, but after reading the documentation abouttestfixtures.v2
on its github, I don't have any idea how to implement it, especially without using yaml file. Could anyone please help me to give an example how to implement it? Or is there other mocking library that I could use? ThanksYou can find the example
eb03e819d3/models/test_fixtures.go (L61)