github / github/depstubber

Embedded field and promoted methods stubbed incorrectly

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
18
Forks
8
Avg merge
21m
Merged PRs (30d)
3

Description

I ran depstubber using the following comment
```
//go:generate depstubber -vendor github.com/revel/revel Controller,Params
```
The stub generated for Params is wrong in several ways: the embedded field of type `url.Values` has been given the name `Values`; various methods, like `Get`, which are methods on `url.Values` have been created as methods on `Params`.

I have attached the generated stub. I had to change the extension to make that work.
[stub.go.txt](https://github.com/github/depstubber/files/5225603/stub.go.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.