HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
h2non/gock 的主要功能包括:Mocking Tools, Testing and QA, Testing and Quality Assurance, 测试框架。
h2non/gock 的开源替代品包括: data-dog/go-sqlmock — go-sqlmock is a Go library that simulates SQL driver behavior for unit testing by intercepting database calls through… jarcoal/httpmock — HTTP mocking for Golang. golang/mock — GoMock is a mocking framework for the Go programming language. data-dog/go-txdb — Immutable transaction isolated sql driver for golang. adamluzsi/testcase. appleboy/gofight.
GoMock is a mocking framework for the Go programming language.
go-sqlmock is a Go library that simulates SQL driver behavior for unit testing by intercepting database calls through the standard database/sql/driver interface, eliminating the need for a real database connection. It provides a comprehensive mocking framework that allows developers to define expectations for SQL operations, including queries, executions, prepared statements, and transaction lifecycles, with precise control over the results and errors returned. The library distinguishes itself through its flexible matching and verification capabilities. It supports regex-based or exact SQL