Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Public test API to set URL params (#322)
* Add a function to set url params for test * [docs] add justification for SetURLVars and description of alternative approach to setting url vars. * rename SetURLParams to SetURLVars as this is more descriptive. * rename testing to testing_helpers as this is more descriptive. * [docs] add stipulation to SetURLVars that it should only be used for testing purposes
- Loading branch information
5ab525f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import "github.com/gorilla/mux"
func TestCreatePerson(t *testing.T) {
}
go test
./main_test.go:84:11: undefined: mux.SetURLVars
..what am I missing?
5ab525f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5ab525f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did that: go get -u github.com/gorilla/mux
same error
5ab525f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please open a new issue and fill out the issue template?
5ab525f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind. I reduced it down and now it works, so clearly a problem on my side. Thanks
//=================================================