We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is what you have:
func (suite *facesTestSuite) TestShouldNotReveal() { var ( actual = &user{ Email: "foo&bar.com", Password: "123", unexportedField: "Foo", } expected = actual ) Reveal(actual, "private") assert.Equal(suite.T(), expected, actual) }
and this is how it should be done:
func (suite *facesTestSuite) TestShouldNotReveal() { var ( actual = &user{ Email: "foo&bar.com", Password: "123", unexportedField: "Foo", } expected = actual ) Reveal(actual, "private") suite.assert.Equal(expected, actual) }
and... why fill the vars like that (with the var() around them?) you have:
var ( actual = &user{ Email: "foo&bar.com", Password: "123", unexportedField: "Foo", } expected = actual )
but you can do:
actual := &user{ Email: "foo&bar.com", Password: "123", unexportedField: "Foo", } expected := actual
Less lines and less indentations, which makes it easier to read
Just my 2 cents....
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is what you have:
and this is how it should be done:
and... why fill the vars like that (with the var() around them?)
you have:
but you can do:
Less lines and less indentations, which makes it easier to read
Just my 2 cents....
The text was updated successfully, but these errors were encountered: