hel icon indicating copy to clipboard operation
hel copied to clipboard

No way to have a test only package pull in interfaces

Open poy opened this issue 8 years ago • 1 comments

Say we have an integration test package that requires a mock from an interface. Hel does not analyze the test code at all.

I think I would would want to use the:

//go:generate hel --type somepackage.Foo --output mock_foo_test.go

syntax to indicate that I would want a certain mock.

poy avatar Apr 05 '16 07:04 poy

Blargh.

I mean, I fully understand the pain, but I kinda hate supporting this. I just know someone's going to start using it to justify using that pattern we hate.

That said, I don't have a better solution. I just don't. I'm probably going to have to support this. Le sigh.

nelsam avatar Apr 14 '16 06:04 nelsam