Skip to content

tracing(test): rename mock classes used in tests to reflect their actual purpose #272

Open
@yaahc

Description

@yaahc

Feature Request

Currently much of tracing's test code uses subscriber::mock() to assert what is essentially a test plan. However this module and the methods used in setting up the test plan are called "mock", which is a term generally reserved for dummy impls of pieces of your system. A mock subscriber should act like a subscriber, not track what one is doing.

Crates

All crates that use subscriber::mock() and its related functions.

Motivation

To make test code less confusing to new comers.

Proposal

These types, modules, etc. should be renamed to better reflect that they are a set of asserts and test plans.

Alternatives

Alternatively, we could not do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions