Skip to content

Verbose testing logger #20

@basgys

Description

@basgys

The Mock clock outputs this log line for every call to Now(), which can become really verbose in tests:

m.tb.Logf("Mock Clock - %s call, matched %d traps", c, len(traps))

Source

Would it be possible to let the caller decide if those logs are desirable?

Unfortunately, we cannot decorate testing.TB due to the private() function, so there aren't convenient options to block them to my knowledge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions