Skip to content
New issue

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

assert vs require #821

Open
H1rono opened this issue Dec 26, 2024 · 0 comments
Open

assert vs require #821

H1rono opened this issue Dec 26, 2024 · 0 comments
Assignees

Comments

@H1rono
Copy link
Member

H1rono commented Dec 26, 2024

assert.NoError(t, err)
req.Header.Set(echo.HeaderContentType, echo.MIMEApplicationJSON)
rec := httptest.NewRecorder()
c := e.NewContext(req, rec)
h, err := NewTestHandlers(t, ctrl)
require.NoError(t, err)

多分 require で全部いい気がするんだけどな...

@Hueter57 Hueter57 self-assigned this Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants