{"adoption": {"forks": 306, "observed_at": "2026-08-28T04:05:42.672923+00:00", "stars": 1836}, "canonical_url": "https://ross.abutalabs.com/products/testable-mock", "card": {"archived": false, "artifact_type": "library", "description": "换种思路写Mock，让单元测试更简单", "domain": ["testing", "developer-tools"], "enriched": true, "function": ["testing", "mocking"], "health_score": 20, "homepage": "https://alibaba.github.io/testable-mock/", "language": "Java", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["alibaba/testable-mock"], "name": "alibaba/testable-mock", "platform": ["jvm"], "pushed_at": "2023-05-17T11:09:55+00:00", "repo": "alibaba/testable-mock", "stars": 1836, "tags": ["unit-testing", "java-agent", "mock-framework", "kotlin", "spock", "android"], "topics": ["unittest", "mock"], "urls": [], "use_cases": ["mock private methods in unit tests", "mock static methods without PowerMock", "simplify mocking in Java unit tests", "mock objects regardless of how they are created", "use mocks in Kotlin or Spock tests", "mock dependencies in Android unit tests"], "what_it_is": "TestableMock is a lightweight mocking library for JVM unit tests that replaces methods (including private, static, and constructors) via a simple @MockInvoke annotation without initialization or framework constraints. It works with Java, Kotlin, Android, and Spock, using a Java agent and Maven plugin for injection.", "when_to_avoid": ["you need a mocking library under active feature development", "you are not on the JVM platform", "you prefer mainstream tools like Mockito or PowerMock with large community support"], "when_to_choose": ["you need to mock private, static, or constructor methods with minimal setup", "you want annotation-based mock definitions without framework lock-in", "you test Java, Kotlin, Android, or Spock projects on the JVM"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/testable-mock", "repo": "alibaba/testable-mock", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:18:28.106938+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "02a98e312c092d2eb9609eb8264053c29a8868ff15f43126fcd1d69d8af0f834", "fetched_at": "2026-08-28T04:05:42.672923+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alibaba/testable-mock"}, {"content_hash": "e711e439b45e287f04015fffb74af9658dacce16a1e7df7628598c7964fc164a", "fetched_at": "2026-08-29T10:57:31.924340+00:00", "kind": "homepage", "missing": false, "url": "https://alibaba.github.io/testable-mock/"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:18:28.106938+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "02a98e312c092d2eb9609eb8264053c29a8868ff15f43126fcd1d69d8af0f834", "fetched_at": "2026-08-28T04:05:42.672923+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alibaba/testable-mock"}, {"content_hash": "e711e439b45e287f04015fffb74af9658dacce16a1e7df7628598c7964fc164a", "fetched_at": "2026-08-29T10:57:31.924340+00:00", "kind": "homepage", "missing": false, "url": "https://alibaba.github.io/testable-mock/"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:18:28.106938+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "02a98e312c092d2eb9609eb8264053c29a8868ff15f43126fcd1d69d8af0f834", "fetched_at": "2026-08-28T04:05:42.672923+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alibaba/testable-mock"}, {"content_hash": "e711e439b45e287f04015fffb74af9658dacce16a1e7df7628598c7964fc164a", "fetched_at": "2026-08-29T10:57:31.924340+00:00", "kind": "homepage", "missing": false, "url": "https://alibaba.github.io/testable-mock/"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:18:28.106938+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "02a98e312c092d2eb9609eb8264053c29a8868ff15f43126fcd1d69d8af0f834", "fetched_at": "2026-08-28T04:05:42.672923+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alibaba/testable-mock"}, {"content_hash": "e711e439b45e287f04015fffb74af9658dacce16a1e7df7628598c7964fc164a", "fetched_at": "2026-08-29T10:57:31.924340+00:00", "kind": "homepage", "missing": false, "url": "https://alibaba.github.io/testable-mock/"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:18:28.106938+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "02a98e312c092d2eb9609eb8264053c29a8868ff15f43126fcd1d69d8af0f834", "fetched_at": "2026-08-28T04:05:42.672923+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alibaba/testable-mock"}, {"content_hash": "e711e439b45e287f04015fffb74af9658dacce16a1e7df7628598c7964fc164a", "fetched_at": "2026-08-29T10:57:31.924340+00:00", "kind": "homepage", "missing": false, "url": "https://alibaba.github.io/testable-mock/"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:18:28.106938+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "02a98e312c092d2eb9609eb8264053c29a8868ff15f43126fcd1d69d8af0f834", "fetched_at": "2026-08-28T04:05:42.672923+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alibaba/testable-mock"}, {"content_hash": "e711e439b45e287f04015fffb74af9658dacce16a1e7df7628598c7964fc164a", "fetched_at": "2026-08-29T10:57:31.924340+00:00", "kind": "homepage", "missing": false, "url": "https://alibaba.github.io/testable-mock/"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.672923+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:18:28.106938+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "02a98e312c092d2eb9609eb8264053c29a8868ff15f43126fcd1d69d8af0f834", "fetched_at": "2026-08-28T04:05:42.672923+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alibaba/testable-mock"}, {"content_hash": "e711e439b45e287f04015fffb74af9658dacce16a1e7df7628598c7964fc164a", "fetched_at": "2026-08-29T10:57:31.924340+00:00", "kind": "homepage", "missing": false, "url": "https://alibaba.github.io/testable-mock/"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:18:28.106938+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "02a98e312c092d2eb9609eb8264053c29a8868ff15f43126fcd1d69d8af0f834", "fetched_at": "2026-08-28T04:05:42.672923+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alibaba/testable-mock"}, {"content_hash": "e711e439b45e287f04015fffb74af9658dacce16a1e7df7628598c7964fc164a", "fetched_at": "2026-08-29T10:57:31.924340+00:00", "kind": "homepage", "missing": false, "url": "https://alibaba.github.io/testable-mock/"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:18:28.106938+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "02a98e312c092d2eb9609eb8264053c29a8868ff15f43126fcd1d69d8af0f834", "fetched_at": "2026-08-28T04:05:42.672923+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alibaba/testable-mock"}, {"content_hash": "e711e439b45e287f04015fffb74af9658dacce16a1e7df7628598c7964fc164a", "fetched_at": "2026-08-29T10:57:31.924340+00:00", "kind": "homepage", "missing": false, "url": "https://alibaba.github.io/testable-mock/"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:18:28.106938+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "02a98e312c092d2eb9609eb8264053c29a8868ff15f43126fcd1d69d8af0f834", "fetched_at": "2026-08-28T04:05:42.672923+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alibaba/testable-mock"}, {"content_hash": "e711e439b45e287f04015fffb74af9658dacce16a1e7df7628598c7964fc164a", "fetched_at": "2026-08-29T10:57:31.924340+00:00", "kind": "homepage", "missing": false, "url": "https://alibaba.github.io/testable-mock/"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2122, "days_push": 1204, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}