Ross ROSS = Recommend OSS · open-source software intelligence for agents

eranpeer/FakeIt

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking. observed · 2026-08-28

github.com/eranpeer/FakeIt · C++ · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

69/100

  • Activity 90
  • Release rhythm 24
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 403
  • age_days: 4749
  • days_rel: 292
  • days_push: 64
  • n_releases_24m: 2

Full methodology

Adoption not part of the score

1370 stars · 181 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

FakeIt is a header-only C++ mocking framework with an expressive C++11-based API for creating mock objects and verifying method invocations. It supports GCC, Clang, AppleClang, and MSVC, and integrates with GTest, MS Test, and Boost Test.

Use cases

  • mock interfaces in C++ unit tests
  • stub method return values in C++ tests
  • verify method calls with specific arguments
  • spy on existing objects during testing
  • integrate mocking with GTest or Boost Test

When to choose

  • you need a lightweight, single-header mocking library for C++11 or later
  • you want expressive Arrange-Act-Assert style mock syntax
  • you use GCC, Clang, or MSVC and need broad compiler support

When to avoid

  • you need mocking for C code without virtual interfaces
  • you prefer a full test framework with built-in mocking like GoogleMock
  • your project is restricted to pre-C++11 compilers

Facets

library · maturity stable

mocking testing testing developer-tools cpp windows cross-platform header-only cpp11 unit-testing mock-objects gtest-integration spy linux macos

1 source

Member repositories

RepositoryRoleHealth v2
eranpeer/FakeItmain69

For agents

markdown · JSON · MCP: product_card(name="eranpeer/FakeIt")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem