cch123 / supermonkey

Patch all Go functions for testing
MIT License
250 stars 17 forks source link

undefined: JmpToFunctionValue #14

Open dgofman opened 3 years ago

dgofman commented 3 years ago

It's not working on ARM architecture

github.com/cch123/supermonkey/internal/bouk

../../../../go/pkg/mod/github.com/cch123/supermonkey@v1.0.0/internal/bouk/replace.go:24:14: undefined: JmpToFunctionValue

dgofman commented 3 years ago

monkeyarm64.go file is missing in go/pkg/mod/bou.ke/monkey@v1.0 ls monkey* monkey_386.go monkey_amd64.go monkey_test.go

cch123 commented 3 years ago

I don't have arm environment for testing.. Help wanted..

dgofman commented 3 years ago

I posted my solution in this thread https://github.com/agiledragon/gomonkey/issues/48

int3cd commented 2 years ago

monkeyarm64.go file is missing in go/pkg/mod/bou.ke/monkey@v1.0 ls monkey* monkey_386.go monkey_amd64.go monkey_test.go

Have you been able to find a solution?

dgofman commented 2 years ago

For now, only one workaround is available to use the AMD64 platform

GOARCH=amd64 go test XXX.go

RuthCodinaV commented 1 year ago

This solutions, sometimes is no usefull

ronething commented 1 year ago

This solutions, sometimes is no usefull

i agree it.