Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

panic in test is swallowed if there are failed expectations and t.Cleanup(ctrl.Finish) #428

@powerman

Description

@powerman

Actual behavior A clear and concise description of what the bug is.

If test function setup some EXPECT() which wasn't called yet and then it panic(), the panic message won't be shown in test output, all I get is missing call(s) to … aborting test due to missing call(s) message.

Expected behavior A clear and concise description of what you expected to happen.

Panic has to be shown in test output. Mentioned above message about missing calls may or may not be shown, it's much less important than panic and often implicit because of panic.

To Reproduce Steps to reproduce the behavior

I can provide trivial example if needed, but I believe it's obvious.

Additional Information

  • gomock mode (reflect or source): source
  • gomock version or git ref: v1.4.3
  • golang version: go version go1.14.2 linux/amd64

Triage Notes for the Maintainers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions