hel
hel copied to clipboard
No way to have a test only package pull in interfaces
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.
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.