uber-go

    uber-go/mock

    GoMock is a mocking framework for the Go programming language.

    backend
    Go
    Apache-2.0
    3.4K stars
    185 forks
    3.4K GitHub watchers
    Updated Oct 30, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    No releases in the last 90 days; the most recent was 439 days ago, with 120 contributors on GitHub.

    Gained 40% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides a mocking framework for the Go programming language to generate mock interfaces for testing.
    • Integrates seamlessly with Go's built-in testing package and supports multiple modes for flexible mock generation.
    • Use for creating mocks from Go source files to unit test interfaces in isolated environments.
    • Use for generating mocks from package archives to test compiled Go packages without source code.
    • Use for customizing mock behavior and failure messages to improve test clarity and debugging.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    gomock is a mocking framework for the Go programming language. It integrates well with Go's built-in testing package, but can be used in other contexts too.

    This project originates from Google's golang/mock repo. Unfortunately, Google no longer maintains this project, and given the heavy usage of gomock project within Uber, we've decided to fork and maintain this going forward at Uber.

    Contributions are welcome in the form of GitHub issue or PR!

    Excerpt from the uber-go/mock README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    185+10

    Open issues

    124+13

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    uber-go/mock compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15—
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16—
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29—
    uber-go/mock3.4K—40439 days ago
    Category median56.0K+2.3K29—

    Also by uber-go

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description