github.com/DATA-DOG/go-sqlmock

go-sqlmock

Package sqlmock is a mock library implementing sql driver.

58

Decision Signals

Health score 58/100, confidence 80/100.

Review
Maintenance 27
Adoption 56
Security 92
Maturity 62
Developer DX 83
Confidence 80

Install

go get github.com/DATA-DOG/go-sqlmock

Package Data

updated Jun 11, 2026
Latest versionv1.5.2
Imported by761 packages
Stars0
Forks0
Last activity2 years ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

93 symbols
SymbolKindSynopsis
Argument Type type Argument interface{ ... }
AnyArg Function func AnyArg() Argument
Argument.Match Method Match func(driver.Value) bool
Column Type type Column struct{}
Column.DbType Method func (c *Column) DbType() string
Column.IsNullable Method func (c *Column) IsNullable() (bool, bool)
Column.Length Method func (c *Column) Length() (int64, bool)
Column.Name Method func (c *Column) Name() string
Column.Nullable Method func (c *Column) Nullable(nullable bool) *Column
Column.OfType Method func (c *Column) OfType(dbType string, sampleValue interface{}) *Column
Column.PrecisionScale Method func (c *Column) PrecisionScale() (int64, int64, bool)
Column.ScanType Method func (c *Column) ScanType() reflect.Type

Maintained Alternatives

limited recent repository activity

#1 Testify

Module testify is a set of packages that provide many tools for testifying that your code will behave as you intend.

Go Testing Libraries 26.0K stars 15 imported-by 100% confidence
95

#2 keploy

Open-source platform for creating safe, isolated production sandboxes for API, integration, and E2E testing.

Go Testing Libraries 17.6K stars 0 imported-by 45% confidence
86

#3 gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

Go Testing Libraries 2.2K stars 65 imported-by 95% confidence
80

#4 Gomega

Gomega is the Ginkgo BDD-style testing framework's preferred matcher library.

Go Testing Libraries 0 stars 11.8K imported-by 80% confidence
80

#5 testcase

Package testcase is an opinionated testing framework.

Go Testing Libraries 130 stars 0 imported-by 65% confidence
71

#6 hoverfly

Lightweight service virtualization/ API simulation / API mocking tool for developers and testers

Go Testing Libraries 0 stars 0 imported-by 60% confidence
59

Similar Packages

Go Testing Libraries

#1 Testify

Module testify is a set of packages that provide many tools for testifying that your code will behave as you intend.

Go Testing Libraries 26.0K stars 15 imported-by 100% confidence
95

#2 keploy

Open-source platform for creating safe, isolated production sandboxes for API, integration, and E2E testing.

Go Testing Libraries 17.6K stars 0 imported-by 45% confidence
86

#3 gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

Go Testing Libraries 2.2K stars 65 imported-by 95% confidence
80

#4 Gomega

Gomega is the Ginkgo BDD-style testing framework's preferred matcher library.

Go Testing Libraries 0 stars 11.8K imported-by 80% confidence
80

#5 testcase

Package testcase is an opinionated testing framework.

Go Testing Libraries 130 stars 0 imported-by 65% confidence
71