Skip to content

proposal: testing/test: Add {T,B}.RawLogf methods #14128

@akalin-keybase

Description

@akalin-keybase

Currently, {T,B}.Logf calls into c.log, which calls decorate on the argument (which prefixes with the file/line, etc.) before appending it to c.output. A library that wants to override this decoration has to resort to printing out \r as a hack, e.g. https://github.com/stretchr/testify/blob/master/assert/assertions.go#L207 .

What if T and B exposed an additional method RawLogf, which wouldn't call decorate on the argument before appending it to c.output? Then the above hack wouldn't be necessary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions