Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LAA-Software-Engineering/golang-rest-api-template
/ functions
Functions
337 in github.com/LAA-Software-Engineering/golang-rest-api-template
⨍
Functions
337
◇
Types & classes
38
Function
TestFindBooksDatabaseError
(t *testing.T)
pkg/api/books_test.go:464
Function
TestFindBooksInvalidLimit
(t *testing.T)
pkg/api/books_test.go:105
Function
TestFindBooksInvalidOffset
(t *testing.T)
pkg/api/books_test.go:84
Function
TestFindBooksLeadingZerosShareListCache
(t *testing.T)
pkg/api/books_test.go:952
Function
TestFindBooksLimitBelowOne
(t *testing.T)
pkg/api/books_test.go:146
Function
TestFindBooksLimitCappedAtMax
(t *testing.T)
pkg/api/books_test.go:166
Function
TestFindBooksNegativeOffset
(t *testing.T)
pkg/api/books_test.go:126
Function
TestFindBooksSingleflightCoalescesDB
(t *testing.T)
pkg/api/books_test.go:857
Function
TestGenerateRandomKey
(t *testing.T)
pkg/auth/auth_test.go:108
Function
TestGenerateToken
(t *testing.T)
pkg/auth/auth_test.go:81
Function
TestGenerateTokenErrorWhenSigningKeyUnset
(t *testing.T)
pkg/auth/auth_test.go:135
Function
TestGenerateTokenRejectsZeroUserID
(t *testing.T)
pkg/auth/auth_test.go:146
Function
TestGenerateTokenRoundTripUsernameClaim
(t *testing.T)
pkg/auth/auth_test.go:88
Function
TestGetBookDelegates
(t *testing.T)
pkg/service/book_service_test.go:278
Function
TestGetenvPositiveDuration
(t *testing.T)
pkg/database/db_test.go:36
Function
TestGetenvPositiveInt
(t *testing.T)
pkg/database/db_test.go:29
Function
TestGormBookStoreDeleteByID
(t *testing.T)
pkg/repository/book_gorm_test.go:134
Function
TestGormBookStoreDeleteByIDNotFound
(t *testing.T)
pkg/repository/book_gorm_test.go:145
Function
TestGormBookStoreFirstByIDNotFound
(t *testing.T)
pkg/repository/book_gorm_test.go:48
Function
TestGormBookStoreListConcurrent
(t *testing.T)
pkg/repository/book_gorm_test.go:154
Function
TestGormBookStoreListCreateFirstByID
(t *testing.T)
pkg/repository/book_gorm_test.go:26
Function
TestGormBookStoreListOffsetLimit
(t *testing.T)
pkg/repository/book_gorm_test.go:57
Function
TestGormBookStorePatchFieldsAuthorOnly
(t *testing.T)
pkg/repository/book_gorm_test.go:120
Function
TestGormBookStorePatchFieldsTitleOnly
(t *testing.T)
pkg/repository/book_gorm_test.go:100
Function
TestGormBookStoreUpdateFields
(t *testing.T)
pkg/repository/book_gorm_test.go:71
Function
TestGormBookStoreUpdateFieldsNotFound
(t *testing.T)
pkg/repository/book_gorm_test.go:91
Function
TestGormUserStoreCreateDuplicateUsername
(t *testing.T)
pkg/repository/user_gorm_test.go:53
Function
TestGormUserStoreFindByUsername
(t *testing.T)
pkg/repository/user_gorm_test.go:27
Function
TestGormUserStoreFindByUsernameNotFound
(t *testing.T)
pkg/repository/user_gorm_test.go:44
Function
TestHashPassword
(t *testing.T)
pkg/auth/auth_test.go:22
Function
TestHashPasswordClampsLowBCRYPT_COSTToMin
(t *testing.T)
pkg/auth/auth_test.go:55
Function
TestHashPasswordInvalidBcryptCostEnvFallsBackToDefault
(t *testing.T)
pkg/auth/auth_test.go:68
Function
TestHashPasswordUsesBCRYPT_COST
(t *testing.T)
pkg/auth/auth_test.go:42
Function
TestHashPasswordUsesDefaultBcryptCost
(t *testing.T)
pkg/auth/auth_test.go:29
Function
TestHealthcheck
(t *testing.T)
pkg/api/books_test.go:53
Function
TestIsBookNotFound
(t *testing.T)
pkg/repository/repository_test.go:11
Function
TestIsUserNotFound
(t *testing.T)
pkg/repository/repository_test.go:18
Function
TestIsUsernameUniqueConstraintError
(t *testing.T)
pkg/repository/user_gorm_test.go:68
Function
TestJWTAuthConcurrentValidRequests
(t *testing.T)
pkg/middleware/jwt_auth_test.go:288
Function
TestJWTAuthRejectsBadRequests
(t *testing.T)
pkg/middleware/jwt_auth_test.go:156
Function
TestJWTAuthRejectsZeroUserIDClaim
(t *testing.T)
pkg/middleware/jwt_auth_test.go:70
Function
TestJWTAuthSetsUserIDContext
(t *testing.T)
pkg/middleware/jwt_auth_test.go:125
Function
TestJWTAuthSetsUsernameContext
(t *testing.T)
pkg/middleware/jwt_auth_test.go:94
Function
TestJWTAuthSigningKeyNotConfiguredReturns503
(t *testing.T)
pkg/middleware/jwt_auth_test.go:37
Function
TestJWTAuthValidBearer
(t *testing.T)
pkg/middleware/jwt_auth_test.go:55
Function
TestJWTKeyFuncAcceptsHS256
(t *testing.T)
pkg/auth/auth_test.go:187
Function
TestJWTKeyFuncRejectsNonHS256Algorithms
(t *testing.T)
pkg/auth/auth_test.go:151
Function
TestListBooksCacheHit
(t *testing.T)
pkg/service/book_service_test.go:90
Function
TestListBooksCacheUnmarshalError
(t *testing.T)
pkg/service/book_service_test.go:117
Function
TestListBooksNilRedisUsesStore
(t *testing.T)
pkg/service/book_service_test.go:75
Function
TestListBooksRedisSetError
(t *testing.T)
pkg/service/book_service_test.go:223
Function
TestListBooksSingleflightCoalescesConcurrentMiss
(t *testing.T)
pkg/service/book_service_test.go:157
Function
TestListBooksStoreError
(t *testing.T)
pkg/service/book_service_test.go:134
Function
TestLivez
(t *testing.T)
pkg/api/probes_test.go:15
Function
TestLoginHandlerBindValidationLoginUser
(t *testing.T)
pkg/api/user_test.go:91
Function
TestLoginHandlerInvalidJSON
(t *testing.T)
pkg/api/user_test.go:71
Function
TestLoginHandlerSuccess
(t *testing.T)
pkg/api/user_test.go:33
Function
TestLoginHandlerUserNotFound
(t *testing.T)
pkg/api/user_test.go:113
Function
TestLoginHandlerWrongPassword
(t *testing.T)
pkg/api/user_test.go:141
Function
TestMaxRequestBodyAllowsSmallPayload
(t *testing.T)
pkg/middleware/max_body_test.go:14
Function
TestMaxRequestBodyMaxBytesReaderWithoutContentLength
(t *testing.T)
pkg/middleware/max_body_test.go:53
Function
TestMaxRequestBodyRejectsOversizedContentLength
(t *testing.T)
pkg/middleware/max_body_test.go:35
Function
TestMockCache_GetExpectation
(t *testing.T)
pkg/cache/cache_test.go:18
Function
TestMockCache_GetExpectation_miss
(t *testing.T)
pkg/cache/cache_test.go:31
Function
TestMongoConnectionURI
(t *testing.T)
pkg/database/mongo_test.go:5
Function
TestNewBookHandler
(t *testing.T)
pkg/api/books_test.go:41
Function
TestNewDatabaseInvalidPostgresEnv
(t *testing.T)
pkg/database/db_test.go:43
Function
TestNewRedisClient
(t *testing.T)
pkg/cache/cache_test.go:12
Function
TestNewUserHandler
(t *testing.T)
pkg/api/user_test.go:22
Function
TestOKStringEnvelope
(t *testing.T)
pkg/httpresp/httpresp_test.go:13
Function
TestParseIDParamNilContext
(t *testing.T)
pkg/api/books_test.go:78
Function
TestPatchBookBumpsGenerationTitleOnly
(t *testing.T)
pkg/service/book_service_test.go:316
Function
TestPatchBookRequiresAtLeastOneField
(t *testing.T)
pkg/api/books_test.go:405
Function
TestPatchBookTitleOnly
(t *testing.T)
pkg/api/books_test.go:434
Function
TestPatchBookWrongOwner
(t *testing.T)
pkg/service/book_service_test.go:372
Function
TestPingMongoNilCollection
(t *testing.T)
pkg/api/probes_test.go:45
Function
TestPingPostgresNilDB
(t *testing.T)
pkg/api/probes_test.go:27
Function
TestPingPostgresSQLiteOK
(t *testing.T)
pkg/api/probes_test.go:32
Function
TestPingRedisNilClient
(t *testing.T)
pkg/api/probes_test.go:40
Function
TestPutBookRequiresTitleAndAuthor
(t *testing.T)
pkg/api/books_test.go:420
Function
TestRedisOptionsFromEnvAddrOverridesHostPort
(t *testing.T)
pkg/cache/redis_env_test.go:33
Function
TestRedisOptionsFromEnvDefaults
(t *testing.T)
pkg/cache/redis_env_test.go:10
Function
TestRedisOptionsFromEnvHostAndPort
(t *testing.T)
pkg/cache/redis_env_test.go:45
Function
TestRedisOptionsFromEnvInvalidDB
(t *testing.T)
pkg/cache/redis_env_test.go:70
Function
TestRedisOptionsFromEnvInvalidDialTimeout
(t *testing.T)
pkg/cache/redis_env_test.go:131
Function
TestRedisOptionsFromEnvNegativeDB
(t *testing.T)
pkg/cache/redis_env_test.go:78
Function
TestRedisOptionsFromEnvNonPositiveDialTimeout
(t *testing.T)
pkg/cache/redis_env_test.go:139
Function
TestRedisOptionsFromEnvPasswordAndDB
(t *testing.T)
pkg/cache/redis_env_test.go:57
Function
TestRedisOptionsFromEnvTLSEnabled
(t *testing.T)
pkg/cache/redis_env_test.go:86
Function
TestRedisOptionsFromEnvTLSInsecure
(t *testing.T)
pkg/cache/redis_env_test.go:101
Function
TestRedisOptionsFromEnvTruthyTLSOn
(t *testing.T)
pkg/cache/redis_env_test.go:116
Function
TestRegisterHandlerDBError
(t *testing.T)
pkg/api/user_test.go:193
Function
TestRegisterHandlerDuplicateUsername
(t *testing.T)
pkg/api/user_test.go:220
Function
TestRegisterHandlerInvalidJSON
(t *testing.T)
pkg/api/user_test.go:173
Function
TestReplaceBookBumpsGeneration
(t *testing.T)
pkg/service/book_service_test.go:292
Function
TestReplaceBookWrongOwner
(t *testing.T)
pkg/service/book_service_test.go:361
Function
TestRequestContextTimeoutDurationFromEnv
(t *testing.T)
pkg/middleware/request_timeout_test.go:28
Function
TestRequestContextTimeoutFiresBeforeSlowWork
(t *testing.T)
pkg/middleware/request_timeout_test.go:43
Function
TestRequestContextTimeoutNoOp
(t *testing.T)
pkg/middleware/request_timeout_test.go:15
Function
TestRequestIDGenerated
(t *testing.T)
pkg/middleware/request_id_test.go:13
← previous
next →
201–300 of 337, ranked by callers