MCPcopy Create free account

hub / github.com/LAA-Software-Engineering/golang-rest-api-template / functions

Functions337 in github.com/LAA-Software-Engineering/golang-rest-api-template

FunctionTestRequestIDPreserved
(t *testing.T)
pkg/middleware/request_id_test.go:39
FunctionTestSetAPISecretKeyRejectsShortSecret
(t *testing.T)
pkg/middleware/api_key_test.go:26
FunctionTestSetJWTSigningKeyAcceptsMinimumLength
(t *testing.T)
pkg/auth/auth_test.go:122
FunctionTestSetJWTSigningKeyRejectsShortSecret
(t *testing.T)
pkg/auth/auth_test.go:114
FunctionTestUpdateBookBindError
(t *testing.T)
pkg/api/books_test.go:385
FunctionTestUpdateBookBumpsListCacheGen
(t *testing.T)
pkg/api/books_test.go:550
FunctionTestUpdateBookDatabaseErrorOnUpdates
(t *testing.T)
pkg/api/books_test.go:505
FunctionTestUpdateBookForbiddenWrongOwner
(t *testing.T)
pkg/api/books_test.go:358
FunctionTestUpdateBookInvalidID
(t *testing.T)
pkg/api/books_test.go:310
FunctionTestUpdateBookNotFound
(t *testing.T)
pkg/api/books_test.go:333
FunctionTestUserJSONOmitsPassword
(t *testing.T)
pkg/models/user_test.go:9
FunctionTestUserServiceLoginDBError
(t *testing.T)
pkg/service/user_service_test.go:62
FunctionTestUserServiceLoginSuccess
(t *testing.T)
pkg/service/user_service_test.go:75
FunctionTestUserServiceLoginUserNotFound
(t *testing.T)
pkg/service/user_service_test.go:38
FunctionTestUserServiceLoginWrongPassword
(t *testing.T)
pkg/service/user_service_test.go:49
FunctionTestUserServiceRegisterConflictDuplicatedKey
(t *testing.T)
pkg/service/user_service_test.go:93
FunctionTestUserServiceRegisterSaveError
(t *testing.T)
pkg/service/user_service_test.go:104
FunctionTestWrite
(t *testing.T)
pkg/httperr/httperr_test.go:13
MethodUpdateBook
(c *gin.Context)
pkg/api/books.go:32
MethodUpdateBook
UpdateBook godoc @Summary Replace a book by ID (PUT) @Description Replaces both title and author. Use PATCH for partial updates. @Tags books @Security
pkg/api/books.go:228
MethodUpdateFields
(id uint, title, author string)
pkg/service/book_service_test.go:50
MethodUpdateFields
UpdateFields mocks base method.
pkg/repository/mock_persistence.go:117
MethodUpdateFields
UpdateFields indicates an expected call of UpdateFields.
pkg/repository/mock_persistence.go:126
Functioninit
()
pkg/middleware/jwt_auth_test.go:18
Functioninit
()
pkg/auth/auth_test.go:14
Functioninit
()
pkg/api/main_test.go:15
Functioninit
()
docs/docs.go:682
Functionjwt_token
()
tests/e2e.py:112
Functionlivez
(c *gin.Context)
pkg/api/probes.go:27
Functionmain
()
cmd/server/main.go:64
Functionmain
()
scripts/generate_key.go:8
Functiontest_create_book
(jwt_token)
tests/e2e.py:116
Functiontest_delete_book
(jwt_token)
tests/e2e.py:153
Functiontest_get_book
(jwt_token)
tests/e2e.py:129
Functiontest_get_books
(jwt_token)
tests/e2e.py:123
Functiontest_patch_book_title_only
(jwt_token)
tests/e2e.py:144
Functiontest_update_book
(jwt_token)
tests/e2e.py:136
← previous301–337 of 337, ranked by callers