cweill / gotests

Automatically generate Go test boilerplate from your source code.
Apache License 2.0
4.92k stars 346 forks source link

template_params argument #149

Open butuzov opened 3 years ago

butuzov commented 3 years ago

What does template_params do and how to use it? I tried to understand, but it looks that it's just redundant in terms of the main package.

Or is there some hidden magic I miss?

cweill commented 3 years ago

It was introduced in https://github.com/cweill/gotests/pull/90, for users who want to call gotests from a separate binary.

butuzov commented 3 years ago

Sorry, I mean what this param does in main.go, as argument it does nothing. TemplateParams is quite clear down the road of the output package.

cweill commented 3 years ago

You're right, it looks like a bug where I forgot to pass it to the Options in #90. Would you like to send a PR to fix it?

butuzov commented 3 years ago

You have already assigned this to me =), but I will put this in the queue as time isn't my best friend.