---
title: "Discussion on \"Dead Stubs: Finding Mock Mappings No Test Actually Uses\" | Hashnode"
description: "Discussion on \"Dead Stubs: Finding Mock Mappings No Test Actually Uses\". Track which mappings are matched and prune the rest so every mock stub is proven to be exercised."
url: "https://hashnode.com/posts/dead-stubs-unused-mock-mappings/6ae4470c67f99e169a0ec14a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Dead Stubs: Finding Mock Mappings No Test Actually Uses](https://blogs.powerduck.com/dead-stubs-unused-mock-mappings?utm_source=hashnode&utm_medium=feed)

Track which mappings are matched and prune the rest so every mock stub is proven to be exercised.

Oct 30 · 5 min read · blogs.powerduck.com  
Read the article

-   [#mocking](https://hashnode.com/tag/mocking)
-   [#api](https://hashnode.com/tag/api)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses 1

Markdown supported · ⌘↵ to post

[Crownforge](https://hashnode.com/@thecrownforge)

[Oct 30](https://hashnode.com/posts/dead-stubs-unused-mock-mappings/6ae4470c67f99e169a0ec14a/comment/6ae4614ee8ce527997636e68)

I would mark the report incomplete if any of the named suites failed to run. Zero hits after a full run and missing hits from a broken CI job should lead to different cleanup decisions
