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 88 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/calebthompson/bulk
  21. github.com/cloudfoundry-incubator/galera-healthcheck/healthcheck
  22. github.com/cloudfoundry-incubator/notifications/v1/web/middleware
  23. github.com/cloudfoundry-incubator/notifications/v2/web/middleware
  24. github.com/cloudfoundry/mariadb_ctrl/mariadb_helper
  25. github.com/cloudfoundry/mariadb_ctrl/mariadb_helper/seeder
  26. github.com/corestoreio/csfw/config/storage/ccd
  27. github.com/corestoreio/csfw/storage/binlogsync
  28. github.com/corestoreio/csfw/storage/csdb
  29. github.com/croachrose/goqu
  30. github.com/fibonacci1729/go.ref/services/identity/internal/auditor
  31. github.com/fibonacci1729/go.ref/services/identity/internal/revocation
  32. github.com/helphone/importer/transaction
  33. github.com/hgfischer/mysqlsuperdump/dumper
  34. github.com/jakecoffman/golang-rest-bootstrap/users
  35. github.com/janvogt/gotambora/coding/database
  36. github.com/jbub/tabular
  37. github.com/kazukgw/gorprel
  38. github.com/kishorevaishnav/goqu
  39. github.com/knutsel/playground/api
  40. github.com/kpurdon/beercellar/internal/beersdb
  41. github.com/kpurdon/beercellar/internal/breweriesdb
  42. github.com/kpurdon/beercellar/internal/cellarbeersdb
  43. github.com/kpurdon/beercellar/internal/cellarsdb
  44. github.com/kpurdon/beercellar/internal/usersdb
  45. github.com/krak3n/go-sqlmock/examples/basic
  46. github.com/krak3n/go-sqlmock/examples/blog
  47. github.com/krak3n/go-sqlmock/examples/orders
  48. github.com/lighthouse/lighthouse/databases/postgres
  49. github.com/lstern/psi-library/server
  50. github.com/lstern/psilibrary/server
  51. github.com/magicshui/csfw/storage/csdb
  52. github.com/mantzas/golinear/reader
  53. github.com/mantzas/golinear/storage
  54. github.com/mantzas/golinear/writer
  55. github.com/mantzas/incata/reader
  56. github.com/mantzas/incata/storage
  57. github.com/mantzas/incata/writer
  58. github.com/mwalzberg/pages
  59. github.com/nylar/triage/api
  60. github.com/patito/bidu/handler
  61. github.com/peterszakszon/flash-cards/db
  62. github.com/peterszakszon/flash-pack/db
  63. github.com/picatic/norm
  64. github.com/pivotal-cf-experimental/cf-mysql-quota-enforcer/database
  65. github.com/samertm/githubstreaks
  66. github.com/seadsystem/Backend/DB/landingzone/handlers/grpcHandlers
  67. github.com/tianlin/go-sqlmock/examples/basic
  68. github.com/tianlin/go-sqlmock/examples/blog
  69. github.com/tianlin/go-sqlmock/examples/orders
  70. github.com/usi-lfkeitel/packet-guardian/src/auth
  71. github.com/usi-lfkeitel/packet-guardian/src/server
  72. github.com/usi-lfkeitel/pg-dhcp
  73. github.com/viniciuswebdev/mysqlsuperdump/dumper
  74. github.com/yatzek/chaos-galago/broker/utils
  75. github.com/yatzek/chaos-galago/broker/web_server
  76. github.com/yatzek/chaos-galago/processor/utils
  77. github.com/yatzek/chaos-galago/shared/utils
  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/data-dog/go-sqlmock.v1/examples/basic
  82. gopkg.in/data-dog/go-sqlmock.v1/examples/blog
  83. gopkg.in/data-dog/go-sqlmock.v1/examples/orders
  84. gopkg.in/doug-martin/goqu.v0
  85. gopkg.in/doug-martin/goqu.v1
  86. gopkg.in/doug-martin/goqu.v2
  87. v.io/x/ref/services/identity/internal/auditor
  88. v.io/x/ref/services/identity/internal/revocation