Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to mock consul gives me this error #50

Closed
vrecan opened this issue Jan 19, 2016 · 3 comments
Closed

Trying to mock consul gives me this error #50

vrecan opened this issue Jan 19, 2016 · 3 comments

Comments

@vrecan
Copy link

vrecan commented Jan 19, 2016

Generating mock for: ConsulLock
Unable to generated mock for 'ConsulLock': unable to handle type: &ast.StructType{Struct:119, Fields:(*ast.FieldList)(0xc82024d440), Incomplete:false}

@vrecan
Copy link
Author

vrecan commented Jan 19, 2016

this is the definition of the struct it was trying to mock:

type ConsulLock interface {
    Lock(<-chan struct{}) (<-chan struct{}, error)
    Unlock() error
}

@mthenw
Copy link

mthenw commented Mar 16, 2016

Same here. @vrecan have you found solution for that?

@vrecan
Copy link
Author

vrecan commented Mar 17, 2016

I ended up going with https://github.com/golang/mock instead. I could never get mockery to work.

@evanphx evanphx closed this as completed in 84d7661 Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants