Skip to content

Check if removal of MethodByName() call can improve dead code elimination. #368

Description

@jmalloc

See golang/protobuf#1561

We use it here:

rm, ok := rt.MethodByName(m)

It may not matter much since this code would generally only be used from test packages, but it'd be good to confirm that they are still eliminated properly. It's also not that uncommon to have some tests in the non-test package to test unexported functions, though this should be rare with Dogma applications.

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