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

  1. github.com/andreas-kokkalis/dock_server/pkg/drivers/postgres/postgresmock
  2. github.com/eirka/eirka-libs/db
  3. github.com/hugorut/butter
  4. github.com/iantanwx/gorm-expect
  5. github.com/jcmturner/awsfederation/database
  6. github.com/jcmturner/awsfederation/test
  7. github.com/rodrigo-brito/bus-api-go/test/mysql
  8. github.com/techjanitor/pram-libs/db

Imported only in test by 125 package(s)

  1. github.com/BlackBaronsTux/sqlboiler/queries
  2. github.com/GuiaBolso/darwin
  3. github.com/InVisionApp/go-health/checkers
  4. github.com/Jimmy99/sqlboiler/boil
  5. github.com/LeKovr/dbrpc
  6. github.com/LinguaLeo/mysqld_exporter/collector
  7. github.com/Nebuleuse/Nebuleuse/core
  8. github.com/Nebuleuse/Nebuleuse/handlers
  9. github.com/Percona-Lab/mysqld_exporter/collector
  10. github.com/Percona-Lab/pxc-admin/pmm
  11. github.com/Softinnov/bearded-sync
  12. github.com/VDMi/DirectQueueGo
  13. github.com/abrahambotros/lore
  14. github.com/agalitsyn/goapi/internal/article
  15. github.com/aheuermann/goqu
  16. github.com/ajankovic/sqlboiler/boil
  17. github.com/andreas-kokkalis/dock_server/pkg/api/repositories
  18. github.com/andreas-kokkalis/dock_server/pkg/drivers/postgres
  19. github.com/andreas-kokkalis/dock_server/pkg/integration
  20. github.com/andreas-kokkalis/dock_server/pkg/util/dbutil
  21. github.com/apaxa-go/helper/databaseh/sqlh
  22. github.com/bestform/health/db
  23. github.com/briandowns/health/db
  24. github.com/bryanl/dolb/entity
  25. github.com/chengxiaoer/geomGo/encoding/ewkb
  26. github.com/chengxiaoer/geomGo/encoding/wkb
  27. github.com/christiangriset/redbox
  28. github.com/cloudflare/cfssl_trust/info
  29. github.com/cloudfoundry-incubator/cf-mysql-benchmark-app/sysbench_client
  30. github.com/cloudinsight/cloudinsight-agent/collector/plugins/mysql
  31. github.com/cloudinsight/cloudinsight-agent/collector/plugins/postgres
  32. github.com/crowdworks/cyqldog/cyqldog
  33. github.com/databrary/sqlboiler/queries
  34. github.com/dave/goqu
  35. github.com/davelondon/goqu
  36. github.com/dearcode/crab/orm
  37. github.com/dictyBase/modware/resources/publication
  38. github.com/didi/gendry/builder
  39. github.com/didi/gendry/scanner
  40. github.com/dimiro1/darwin
  41. github.com/dimiro1/health/db
  42. github.com/doug-martin/goqu
  43. github.com/dplesca/health/db
  44. github.com/eirka/eirka-get/middleware
  45. github.com/eirka/eirka-libs/audit
  46. github.com/eirka/eirka-libs/user
  47. github.com/eirka/eirka-post/controllers
  48. github.com/eirka/eirka-post/middleware
  49. github.com/eirka/eirka-post/models
  50. github.com/eirka/eirka-post/utils
  51. github.com/erichnascimento/go-sqlquery
  52. github.com/google/skia-buildbot/perf/go/regression
  53. github.com/heetch/sqalx
  54. github.com/heptiolabs/healthcheck
  55. github.com/idcrosby/catalogue
  56. github.com/ido50/sqlz
  57. github.com/ivzb/achievers_server/app/db
  58. github.com/jcmturner/awsfederation/assumerole
  59. github.com/jcmturner/awsfederation/federationuser
  60. github.com/jcmturner/awsfederation/httphandling
  61. github.com/jesseeichar/go-geom/encoding/ewkb
  62. github.com/jesseeichar/go-geom/encoding/wkb
  63. github.com/jirfag/go-queryset/queryset
  64. github.com/jivesearch/jivesearch/instant/wikipedia
  65. github.com/jivesearch/jivesearch/search/vote
  66. github.com/joohoi/acme-dns
  67. github.com/jpincas/ghost/auth
  68. github.com/kmulvey/gen-gorm/backends
  69. github.com/kmulvey/go-graphql
  70. github.com/kylechadha/code-salary/services
  71. github.com/laibulle/go_test
  72. github.com/lingualeo/mysqld_exporter/collector
  73. github.com/longlongh4/sqlboiler/queries
  74. github.com/mailru/dbr
  75. github.com/manuviswam/SmartScale/handlers
  76. github.com/micromdm/micromdm/certificate
  77. github.com/ntk1000/go-sandbox/sqlmock
  78. github.com/nullbio/sqlboiler/queries
  79. github.com/oakmail/goqu
  80. github.com/percona/pmm-client/pmm
  81. github.com/phogolabs/prana/sqlmigr
  82. github.com/pobri19/sqlboiler/boil
  83. github.com/pobri19/sqlboiler/queries
  84. github.com/proglottis/inbatches
  85. github.com/prometheus/mysqld_exporter/collector
  86. github.com/rodrigo-brito/bus-api-go/domain/bus/repository
  87. github.com/roman-vynar/mysqld_exporter/collector
  88. github.com/stackmachine/stackmachine/cql
  89. github.com/stackmachine/webservices/cql
  90. github.com/stratexio/goqu
  91. github.com/supar/mbmi-go
  92. github.com/supar/msm-server
  93. github.com/supar/postlog-sa
  94. github.com/supar/posttcp-sa
  95. github.com/syklevin/sqlz
  96. github.com/techjanitor/pram-get/middleware
  97. github.com/techjanitor/pram-libs/audit
  98. github.com/techjanitor/pram-post/controllers
  99. github.com/techjanitor/pram-post/middleware
  100. github.com/techjanitor/pram-post/models
  101. github.com/techjanitor/pram-post/utils
  102. github.com/thurt/demo-blog-platform/cms/mysqlprovider
  103. github.com/timonwong/dbr
  104. github.com/tochti/sj
  105. github.com/tux0010/TodoList/todolist
  106. github.com/twpayne/go-geom/encoding/ewkb
  107. github.com/twpayne/go-geom/encoding/wkb
  108. github.com/txstate-etc/digital-measures
  109. github.com/vattle/sqlboiler/boil
  110. github.com/vattle/sqlboiler/queries
  111. github.com/vocoded/goqu
  112. github.com/volatiletech/sqlboiler/queries
  113. github.com/wayneashleyberry/go-colorful
  114. github.com/xtracdev/es-atom-data
  115. github.com/xtracdev/es-atom-data-pg
  116. github.com/xtracdev/es-atom-pub
  117. github.com/xtracdev/es-atom-pub-pg
  118. github.com/xtracdev/es-atom-replicator
  119. github.com/xujiajun/godbal
  120. github.com/xujiajun/godbal/driver/mysql
  121. gitlab.com/jmabey/go-sqlutil
  122. go.skia.org/infra/perf/go/regression
  123. gopkg.in/doug-martin/goqu.v3
  124. gopkg.in/vattle/sqlboiler.v1/boil
  125. gopkg.in/vattle/sqlboiler.v2/queries