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 74 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/apaxa-go/helper/databaseh/sqlh
  12. github.com/bestform/health/db
  13. github.com/briandowns/health/db
  14. github.com/bryanl/dolb/entity
  15. github.com/cloudfoundry-incubator/cf-mysql-benchmark-app/sysbench_client
  16. github.com/cloudinsight/cloudinsight-agent/collector/plugins/mysql
  17. github.com/cloudinsight/cloudinsight-agent/collector/plugins/postgres
  18. github.com/davelondon/goqu
  19. github.com/dimiro1/darwin
  20. github.com/dimiro1/health/db
  21. github.com/doug-martin/goqu
  22. github.com/dplesca/health/db
  23. github.com/eirka/eirka-get/middleware
  24. github.com/eirka/eirka-libs/audit
  25. github.com/eirka/eirka-libs/user
  26. github.com/eirka/eirka-post/controllers
  27. github.com/eirka/eirka-post/middleware
  28. github.com/eirka/eirka-post/models
  29. github.com/eirka/eirka-post/utils
  30. github.com/google/skia-buildbot/perf/go/regression
  31. github.com/heetch/sqalx
  32. github.com/jesseeichar/go-geom/encoding/ewkb
  33. github.com/jesseeichar/go-geom/encoding/wkb
  34. github.com/kmulvey/gen-gorm/backends
  35. github.com/kmulvey/go-graphql
  36. github.com/kylechadha/code-salary/services
  37. github.com/laibulle/go_test
  38. github.com/lingualeo/mysqld_exporter/collector
  39. github.com/longlongh4/sqlboiler/queries
  40. github.com/manuviswam/SmartScale/handlers
  41. github.com/micromdm/micromdm/certificate
  42. github.com/ntk1000/go-sandbox/sqlmock
  43. github.com/percona/pmm-client/pmm
  44. github.com/pobri19/sqlboiler/boil
  45. github.com/pobri19/sqlboiler/queries
  46. github.com/prometheus/mysqld_exporter/collector
  47. github.com/roman-vynar/mysqld_exporter/collector
  48. github.com/stackmachine/stackmachine/cql
  49. github.com/stackmachine/webservices/cql
  50. github.com/stratexio/goqu
  51. github.com/supar/msm-server
  52. github.com/supar/postlog-sa
  53. github.com/supar/posttcp-sa
  54. github.com/techjanitor/pram-get/middleware
  55. github.com/techjanitor/pram-libs/audit
  56. github.com/techjanitor/pram-post/controllers
  57. github.com/techjanitor/pram-post/middleware
  58. github.com/techjanitor/pram-post/models
  59. github.com/techjanitor/pram-post/utils
  60. github.com/tochti/sj
  61. github.com/tux0010/TodoList/todolist
  62. github.com/twpayne/go-geom/encoding/ewkb
  63. github.com/twpayne/go-geom/encoding/wkb
  64. github.com/txstate-etc/digital-measures
  65. github.com/vattle/sqlboiler/boil
  66. github.com/vattle/sqlboiler/queries
  67. github.com/xtracdev/es-atom-data
  68. github.com/xtracdev/es-atom-pub
  69. github.com/xtracdev/es-atom-replicator
  70. gitlab.com/jmabey/go-sqlutil
  71. go.skia.org/infra/perf/go/regression
  72. gopkg.in/doug-martin/goqu.v3
  73. gopkg.in/vattle/sqlboiler.v1/boil
  74. gopkg.in/vattle/sqlboiler.v2/queries