Skip to content
CAI
Software that uses CAICheck a score

eproxus/meck

65.2

Adequate · 13 November 2026

2.5k

lines of production code

Erlang

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a mocking framework for Erlang, designed to facilitate unit testing by allowing developers to replace modules with mock implementations. It provides core capabilities for setting expectations, matching arguments, tracking call history, and handling return values, all supported by comprehensive test coverage. The project has recently modernized its infrastructure by migrating from a custom Make-based build to Rebar 3, standardizing documentation with ex\_doc, and refactoring internal logic into dedicated modules for better maintainability.

Features

New 'cut' script for manual versioning and publishing

A new shell script, .scripts/cut.sh, has been added to automate the release process. This tool validates that required tools (git, sed, rebar3) are available, ensures the repository is clean, updates version numbers in source and documentation files, creates a git commit and signed tag, and finally publishes the package via rebar3 hex. This replaces previous automated or manual workflows with a single, explicit command-line interface for cutting releases.

.scripts · high confidence

Removals

Removed legacy build and test utility scripts

The project has removed its custom build and testing infrastructure, specifically deleting the \make\_doc.erl\ script for generating documentation, the \releaser\ shell script for managing releases, and the \run\_test.erl\ module for executing tests and generating coverage reports. These changes align with the migration of the build system from Make to rebar, indicating that these manual utilities are no longer supported or required.

util · high confidence

Architecture

Refactored mocking internals into dedicated modules

The core mocking logic has been reorganized into specialized modules to improve maintainability and clarity. Argument matching is now handled by meck\_args\_matcher, expectation processing by meck\_expect, return value specifications by meck\_ret\_spec, and call history management by meck\_history. Code generation and module wrangling are managed by meck\_code and meck\_code\_gen, while cover integration is isolated in meck\_cover. This refactoring centralizes specific concerns, making the framework's behavior more predictable and easier to extend.

src · high confidence

Behavioural changes

Migrate build system from Make to Rebar 3 and update supported Erlang versions

The project has replaced its custom Makefile build process with Rebar 3, configuring it to enforce stricter compiler warnings (warnings\_as\_errors) and use ex\_doc for documentation generation. This change coincides with a minimum supported Erlang/OTP version bump to 25.0, removing compatibility for older releases, and includes the addition of a Code of Conduct and updated contribution guidelines.

(repo-wide) · high confidence

Removal of legacy edoc documentation

The legacy edoc source file (doc/overview.edoc) has been removed from the project. This change aligns with the migration to ex\_doc, meaning the old edoc-based documentation generation is no longer supported or included in the build.

doc · high confidence

Test coverage

Expanded test coverage for mocking, history, and argument matching

Added comprehensive EUnit test suites to verify core mocking capabilities, including argument matchers, expectation handling, and call history tracking. The new tests in \test/meck\_args\_matcher\_tests.erl\ and \test/meck\_matcher\_tests.erl\ validate the matching logic for wildcards, arities, and custom predicates. \test/meck\_expect\_tests.erl\ covers explicit values, wildcards, and matchers in expectations, while \test/meck\_history\_tests.erl\ ensures correct recording and retrieval of call history, including results, exceptions, and caller PIDs. Additional tests in \test/meck\_on\_load\_tests.erl\ verify the \enable\_on\_load\ option, and \test/meck\_ret\_spec\_tests.erl\ checks return specification behaviors like passthrough and execution. A new performance test module (\test/meck\_performance\_test.erl\) and helper modules (\test/meck\_test\_module.erl\, \test/cover\_test\_module.dontcompile\) support these validations.

test · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 63 → 65 (+2.4)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 75 → 75 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 51 → 56 (+5.1)
  • Readiness 68 → 68 (+0.0)
  • Security 75 → 75 (+0.0)

Resolved (1)

  • Off-boarding risk: anonymized user #1

New (4)

  • Edited copies of one member (3 members, 6+ corresponding lines) (src/meck.erl)
  • Edited copy of a member (12 corresponding lines) (src/meck_history.erl)
  • Edited copy of a member (6 corresponding lines) (src/meck.erl)
  • Off-boarding risk: anonymized user #1

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

eproxus/meck was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit aab8a5afabdbe2458271bd5e297734b91d466bf8 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.57+preprod-8ebfb01cf4c0.