fix: remove 10 unused test functions flagged by staticcheck U1000
This commit is contained in:
@@ -36,11 +36,6 @@ func makeAdminRequest(handler http.Handler, method, path string, body interface{
|
||||
return makeRequestWithContext(handler, method, path, body, "admin001", "admin", ctx)
|
||||
}
|
||||
|
||||
// makeUserRequest creates a request with regular user context
|
||||
func makeUserRequest(handler http.Handler, method, path string, body interface{}, ctx context.Context) *httptest.ResponseRecorder {
|
||||
return makeRequestWithContext(handler, method, path, body, "user001", "verified_email", ctx)
|
||||
}
|
||||
|
||||
// makeRequestWithContext creates a request with specific user context
|
||||
func makeRequestWithContext(handler http.Handler, method, path string, body interface{}, userID, role string, ctx context.Context) *httptest.ResponseRecorder {
|
||||
var req *http.Request
|
||||
|
||||
Reference in New Issue
Block a user