Skip to content

testify tests fail with "f.fn.Type().In undefined (type reflect.Type has no field or method In)" #2650

Open
@dkegel-fastly

Description

@dkegel-fastly

Ooodles of packages use testify.

Testify's "tinygo test" fails at first because of #2649
Getting past that with -tags safe yields

mock/mock.go:705:28: f.fn.Type().In undefined (type reflect.Type has no field or method In)
mock/mock.go:751:12: fnType.NumIn undefined (type reflect.Type has no field or method NumIn)
mock/mock.go:754:12: fnType.NumOut undefined (type reflect.Type has no field or method NumOut)
mock/mock.go:754:36: fnType.Out undefined (type reflect.Type has no field or method Out)

It's not really clear that filing bugs about reflect problems makes much sense - we know reflect needs work - but
as testify is a fairly central package, I figured it was just barely worth filing a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestreflectionNeeds further work on reflection

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions