Go Mock

Open-source Go projects categorized as Mock

Top 23 Go Mock Projects

  • go-sqlmock

    Sql mock driver for golang to test database interactions

  • Project mention: How do you unit-test code that reaches out to the db, without introducing interfaces everywhere? | /r/golang | 2023-08-16
  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • mockery

    A mock code autogenerator for Go (by vektra)

  • Project mention: I Write Tests in Go | news.ycombinator.com | 2024-04-10

    I'm far too lazy to write mocks by hand in go. You can generate a mock for a given interface with mockery https://github.com/vektra/mockery

  • hoverfly

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

  • gock

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

  • httpmock

    HTTP mocking for Golang

  • counterfeiter

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

  • service-pattern-go

    Simple clean Go REST API architecture with dependency injection and mocking example, following SOLID principles.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • Mmock

    Mmock is an HTTP mocking application for testing and fast prototyping

  • go-txdb

    Immutable transaction isolated sql driver for golang

  • gripmock

    gRPC Mock Server

  • minimock

    Powerful mock generation tool for Go programming language

  • killgrave

    Simple way to generate mock servers written in Go

  • openapi-mock

    OpenAPI mock server with random data generation

  • Project mention: How to Automatically Consume RESTful APIs in Your Frontend | dev.to | 2024-01-25

    Since the OpenAPI can effectively describe our resources, we can reuse it to generate a dummy server that can be later used for development and testing purposes without bootstrapping any actual services. There some tools available that can help us with this task, such as Prism, OpenAPI Mock, OpenAPI Backend and the MSW library we have already seen.

  • redismock

    Redis client Mock

  • xgo

    All-in-one go testing library (by xhd2015)

  • Project mention: My last weeks GitHub contributions | dev.to | 2024-04-27

    Many PR about typos fixing or installing GitHub actions to validate spellchecking on various repositories fix typos #4 ccoVeille posted on Apr 15, 2024 Fix typos and style Format README.md file View on GitHub Add Typos GitHub Action #37 ccoVeille posted on Apr 19, 2024 https://github.com/marketplace/actions/typos-action Fixes #28 View on GitHub fix typos #113 ccoVeille posted on Apr 13, 2024 Fix typos in code and tests Fix acronyms and brand names View on GitHub fix typos, brands and acronyms #21 ccoVeille posted on Apr 01, 2024 fix typos in code, test and documentation Fix registered trademark and other acronyms View on GitHub Fix typos in the documentation and code comments #99 ccoVeille posted on Apr 21, 2024 View on GitHub typos suggestion #390 ccoVeille posted on Apr 22, 2024 Check list [X] I have performed a self-review of my code [ ] I have commented my code in hard-to-understand areas [X] I have made corresponding changes to the documentation Description Fix some typos and wordings in README.md Fix headers style Fix exemplī grātiā usage (Latin) Type of change [ ] Bug fix [ ] New feature [ ] Refactor [ ] Breaking change [X] Documentation change Test environment Shell [ ] bash [ ] zsh [ ] fish OS [ ] Linux [ ] Mac OS X [ ] Windows [ ] Others: View on GitHub Fix typo and style #3 ccoVeille posted on Apr 25, 2024 View on GitHub

  • charlatan

    Go Interface Mocking Tool

  • govcr

    HTTP mock for Golang: record and replay HTTP/HTTPS interactions for offline testing

  • go-smtp-mock

    SMTP mock server written on Golang. Mimic any 📤 SMTP server behavior for your test environment with fake SMTP server.

  • gomockhandler

    Mr. gomockhandler is the clever and more agile manager of golang/mock (uber/mock) 👔

  • go-github-mock

    A library to aid unittesting code that uses Golang's Github SDK

  • wiretap

    The world's coolest API Validation and compliance tool. Validate APIs against OpenAPI specifications and much more (by pb33f)

  • Project mention: How to Build a Perfect API Description | dev.to | 2024-02-23

    If you cannot find something to integrate with your existing test suite, consider using Wiretap which can run as a proxy, and handle contract testing of the requests/responses that come through it in testing or staging environments.

  • go-localstack

    Go Wrapper for using localstack

  • timex

    A test-friendly replacement for golang's time package [managed by soy-programador] (by cabify)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Mock discussion

Log in or Post with

Go Mock related posts

  • I Write Tests in Go

    1 project | news.ycombinator.com | 10 Apr 2024
  • How do you unit-test code that reaches out to the db, without introducing interfaces everywhere?

    1 project | /r/golang | 16 Aug 2023
  • Direction of mockery: absorb different styles of mocks into this project · vektra mockery · Discussion #671

    1 project | /r/golang | 11 Jul 2023
  • Maintainership of Go’s official gomock repo has been transferred to Uber.

    1 project | /r/golang | 10 Jul 2023
  • Uber Now Maintains Gomock

    1 project | news.ycombinator.com | 4 Jul 2023
  • grpcmock: Mock gRPC servers dynamically

    2 projects | /r/golang | 1 Jul 2023
  • Google Stopped Maintaining GoMock

    2 projects | news.ycombinator.com | 28 Jun 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 16 Jun 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Mock projects in Go? This list will help you:

Project Stars
1 go-sqlmock 5,902
2 mockery 5,757
3 hoverfly 2,324
4 gock 2,040
5 httpmock 1,883
6 counterfeiter 925
7 service-pattern-go 812
8 Mmock 663
9 go-txdb 630
10 gripmock 621
11 minimock 566
12 killgrave 493
13 openapi-mock 475
14 redismock 264
15 xgo 266
16 charlatan 201
17 govcr 165
18 go-smtp-mock 119
19 gomockhandler 105
20 go-github-mock 91
21 wiretap 79
22 go-localstack 75
23 timex 70

Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com