What's the best approach for mocking a function /method?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • counterfeiter

    A tool for generating self-contained, type-safe test doubles in go

  • InfluxDB

    Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.

    InfluxDB logo
  • keploy

    Shadow Test generation for Developers. Generate tests and stubs for your application that actually work!

    If you want something quick, you can also try keploy. You can generate API-level tests along with mocks with it, so you won't have you mock your databases or dependencies manually.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Test generating tools - future of test automation?

    1 project | /r/webdev | 21 Dec 2022
  • Closer look at Keploy

    1 project | dev.to | 24 Oct 2022
  • How To Use Go As a Glue Language

    1 project | /r/golang | 1 Sep 2022
  • Unit Testing a Grom Application With a Real DB Server

    3 projects | /r/golang | 27 Jul 2022
  • Keploy

    1 project | /r/devopspro | 29 Jun 2022

Did you konow that Go is
the 4th most popular programming language
based on number of metions?