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 11 package(s)

  1. github.com/TwitchScience/rs_ingester/backend
  2. github.com/corestoreio/csfw/util/cstesting
  3. github.com/iangudger/sqlmock_prepare_example
  4. github.com/jsutlovic/people-server-go
  5. github.com/lighthouse/lighthouse/databases
  6. github.com/magicshui/csfw/util/cstesting
  7. github.com/samertm/githubstreaks/db
  8. github.com/seadsystem/Backend/DB/landingzone/database
  9. github.com/seadsystem/landingzone/database
  10. github.com/tinamariathomas/ToDoReactApp/testutils
  11. github.com/twitchscience/rs_ingester/backend

Imported only in test by 85 package(s)

  1. github.com/Clever/redshifter/redshift
  2. github.com/Clever/s3-to-redshift/redshift
  3. github.com/Comcast/traffic_control/traffic_ops/experimental/server/api
  4. github.com/DATA-DOG/go-sqlmock/examples/basic
  5. github.com/DATA-DOG/go-sqlmock/examples/blog
  6. github.com/DATA-DOG/go-sqlmock/examples/orders
  7. github.com/FidelityInternational/chaos-galago/broker/utils
  8. github.com/FidelityInternational/chaos-galago/broker/web_server
  9. github.com/FidelityInternational/chaos-galago/processor/utils
  10. github.com/FidelityInternational/chaos-galago/shared/utils
  11. github.com/FreekKalter/km/lib
  12. github.com/Jarema/golang-rest-bootstrap
  13. github.com/OlivierBoucher/go-tracking-server/middlewares
  14. github.com/abulimov/db-checker/lib
  15. github.com/alok87/mysqlsuperdump/dumper
  16. github.com/azihsoyn/go-sqlmock/examples/basic
  17. github.com/azihsoyn/go-sqlmock/examples/blog
  18. github.com/azihsoyn/go-sqlmock/examples/orders
  19. github.com/bahlo/abutil
  20. github.com/cloudfoundry-incubator/galera-healthcheck/healthcheck
  21. github.com/cloudfoundry-incubator/notifications/v1/web/middleware
  22. github.com/cloudfoundry-incubator/notifications/v2/web/middleware
  23. github.com/cloudfoundry/mariadb_ctrl/mariadb_helper
  24. github.com/cloudfoundry/mariadb_ctrl/mariadb_helper/seeder
  25. github.com/corestoreio/csfw/config/storage/ccd
  26. github.com/corestoreio/csfw/storage/binlogsync
  27. github.com/corestoreio/csfw/storage/csdb
  28. github.com/croachrose/goqu
  29. github.com/helphone/importer/transaction
  30. github.com/hgfischer/mysqlsuperdump/dumper
  31. github.com/jakecoffman/golang-rest-bootstrap/users
  32. github.com/janvogt/gotambora/coding/database
  33. github.com/jbub/tabular
  34. github.com/kazukgw/gorprel
  35. github.com/kishorevaishnav/goqu
  36. github.com/knutsel/playground/api
  37. github.com/kpurdon/beercellar/internal/beersdb
  38. github.com/kpurdon/beercellar/internal/breweriesdb
  39. github.com/kpurdon/beercellar/internal/cellarbeersdb
  40. github.com/kpurdon/beercellar/internal/cellarsdb
  41. github.com/kpurdon/beercellar/internal/usersdb
  42. github.com/krak3n/go-sqlmock/examples/basic
  43. github.com/krak3n/go-sqlmock/examples/blog
  44. github.com/krak3n/go-sqlmock/examples/orders
  45. github.com/lighthouse/lighthouse/databases/postgres
  46. github.com/lstern/psi-library/server
  47. github.com/lstern/psilibrary/server
  48. github.com/magicshui/csfw/storage/csdb
  49. github.com/mantzas/golinear/reader
  50. github.com/mantzas/golinear/storage
  51. github.com/mantzas/golinear/writer
  52. github.com/mantzas/incata/reader
  53. github.com/mantzas/incata/storage
  54. github.com/mantzas/incata/writer
  55. github.com/mwalzberg/pages
  56. github.com/nylar/triage/api
  57. github.com/patito/bidu/handler
  58. github.com/peterszakszon/flash-cards/db
  59. github.com/peterszakszon/flash-pack/db
  60. github.com/picatic/norm
  61. github.com/pivotal-cf-experimental/cf-mysql-quota-enforcer/database
  62. github.com/samertm/githubstreaks
  63. github.com/seadsystem/Backend/DB/landingzone/handlers/grpcHandlers
  64. github.com/tianlin/go-sqlmock/examples/basic
  65. github.com/tianlin/go-sqlmock/examples/blog
  66. github.com/tianlin/go-sqlmock/examples/orders
  67. github.com/usi-lfkeitel/packet-guardian/src/auth
  68. github.com/usi-lfkeitel/packet-guardian/src/server
  69. github.com/usi-lfkeitel/pg-dhcp
  70. github.com/viniciuswebdev/mysqlsuperdump/dumper
  71. github.com/yatzek/chaos-galago/broker/utils
  72. github.com/yatzek/chaos-galago/broker/web_server
  73. github.com/yatzek/chaos-galago/processor/utils
  74. github.com/yatzek/chaos-galago/shared/utils
  75. gopkg.in/DATA-DOG/go-sqlmock.v1/examples/basic
  76. gopkg.in/DATA-DOG/go-sqlmock.v1/examples/blog
  77. gopkg.in/DATA-DOG/go-sqlmock.v1/examples/orders
  78. gopkg.in/data-dog/go-sqlmock.v1/examples/basic
  79. gopkg.in/data-dog/go-sqlmock.v1/examples/blog
  80. gopkg.in/data-dog/go-sqlmock.v1/examples/orders
  81. gopkg.in/doug-martin/goqu.v0
  82. gopkg.in/doug-martin/goqu.v1
  83. gopkg.in/doug-martin/goqu.v2
  84. v.io/x/ref/services/identity/internal/auditor
  85. v.io/x/ref/services/identity/internal/revocation