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

asomers/mockall

A powerful mock object library for Rust observed · 2026-08-28

github.com/asomers/mockall · Rust · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

72/100

  • Activity 89
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

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: n/a
  • age_days: 2764
  • days_rel: n/a
  • days_push: 66
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1832 stars · 81 forks observed · 2026-08-28

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

Mockall is a mock object library for Rust that generates mock implementations of traits and structs via procedural macros for use in unit tests. It provides expectation setting, argument matching, and return value control with a terse, ergonomic API in 100% safe, stable Rust.

Use cases

  • mock traits in Rust unit tests
  • inject error cases into tests
  • test upper layers without lower dependencies
  • generate mock structs automatically
  • verify method call counts and arguments

When to choose

  • you need powerful mocking in Rust unit tests
  • you want automatic mock generation from traits
  • you need argument matchers and call expectations

When to avoid

  • you only need simple stubs or fakes
  • you are testing integration or end-to-end rather than unit tests

Facets

library · maturity stable

mocking testing testing developer-tools rust cross-platform unit-testing proc-macros test-doubles rust

2 sources

Member repositories

RepositoryRoleHealth v2
asomers/mockallmain72

For agents

markdown · JSON · MCP: product_card(name="asomers/mockall")

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