top

Package sqlmock is a mock library implementing sql driver. Which has one and only purpose - to simulate any sql driver behavior in tests, without needing a real database connection. It helps to maintain correct **TDD** workflow.

It does not require any modifications to your source code in order to test and mock database operations. Supports concurrency and multiple database mocking.

The driver allows to mock any sql driver method behavior.

Imported by 2 package(s)

  1. github.com/eirka/eirka-libs/db
  2. github.com/techjanitor/pram-libs/db

Imported only in test by 66 package(s)

  1. github.com/BlackBaronsTux/sqlboiler/queries
  2. github.com/GuiaBolso/darwin
  3. github.com/Jimmy99/sqlboiler/boil
  4. github.com/LeKovr/dbrpc
  5. github.com/Nebuleuse/Nebuleuse/core
  6. github.com/Nebuleuse/Nebuleuse/handlers
  7. github.com/Percona-Lab/mysqld_exporter/collector
  8. github.com/Percona-Lab/pxc-admin/pmm
  9. github.com/aheuermann/goqu
  10. github.com/ajankovic/sqlboiler/boil
  11. github.com/bestform/health/db
  12. github.com/briandowns/health/db
  13. github.com/bryanl/dolb/entity
  14. github.com/cloudfoundry-incubator/cf-mysql-benchmark-app/sysbench_client
  15. github.com/cloudinsight/cloudinsight-agent/collector/plugins/mysql
  16. github.com/davelondon/goqu
  17. github.com/dimiro1/darwin
  18. github.com/dimiro1/health/db
  19. github.com/doug-martin/goqu
  20. github.com/dplesca/health/db
  21. github.com/eirka/eirka-get/middleware
  22. github.com/eirka/eirka-libs/audit
  23. github.com/eirka/eirka-libs/user
  24. github.com/eirka/eirka-post/controllers
  25. github.com/eirka/eirka-post/middleware
  26. github.com/eirka/eirka-post/models
  27. github.com/eirka/eirka-post/utils
  28. github.com/google/skia-buildbot/perf/go/regression
  29. github.com/heetch/sqalx
  30. github.com/jesseeichar/go-geom/encoding/ewkb
  31. github.com/jesseeichar/go-geom/encoding/wkb
  32. github.com/kmulvey/gen-gorm/backends
  33. github.com/kmulvey/go-graphql
  34. github.com/kylechadha/code-salary/services
  35. github.com/laibulle/go_test
  36. github.com/manuviswam/SmartScale/handlers
  37. github.com/micromdm/micromdm/certificate
  38. github.com/ntk1000/go-sandbox/sqlmock
  39. github.com/percona/pmm-client/pmm
  40. github.com/pobri19/sqlboiler/boil
  41. github.com/prometheus/mysqld_exporter/collector
  42. github.com/roman-vynar/mysqld_exporter/collector
  43. github.com/stackmachine/stackmachine/cql
  44. github.com/stackmachine/webservices/cql
  45. github.com/stratexio/goqu
  46. github.com/supar/msm-server
  47. github.com/supar/postlog-sa
  48. github.com/supar/posttcp-sa
  49. github.com/techjanitor/pram-get/middleware
  50. github.com/techjanitor/pram-libs/audit
  51. github.com/techjanitor/pram-post/controllers
  52. github.com/techjanitor/pram-post/middleware
  53. github.com/techjanitor/pram-post/models
  54. github.com/techjanitor/pram-post/utils
  55. github.com/tochti/sj
  56. github.com/tux0010/TodoList/todolist
  57. github.com/twpayne/go-geom/encoding/ewkb
  58. github.com/twpayne/go-geom/encoding/wkb
  59. github.com/txstate-etc/digital-measures
  60. github.com/vattle/sqlboiler/boil
  61. github.com/vattle/sqlboiler/queries
  62. gitlab.com/jmabey/go-sqlutil
  63. go.skia.org/infra/perf/go/regression
  64. gopkg.in/doug-martin/goqu.v3
  65. gopkg.in/vattle/sqlboiler.v1/boil
  66. gopkg.in/vattle/sqlboiler.v2/queries