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

FunctionTestFindBooksDatabaseError
(t *testing.T)
pkg/api/books_test.go:464
FunctionTestFindBooksInvalidLimit
(t *testing.T)
pkg/api/books_test.go:105
FunctionTestFindBooksInvalidOffset
(t *testing.T)
pkg/api/books_test.go:84
FunctionTestFindBooksLeadingZerosShareListCache
(t *testing.T)
pkg/api/books_test.go:952
FunctionTestFindBooksLimitBelowOne
(t *testing.T)
pkg/api/books_test.go:146
FunctionTestFindBooksLimitCappedAtMax
(t *testing.T)
pkg/api/books_test.go:166
FunctionTestFindBooksNegativeOffset
(t *testing.T)
pkg/api/books_test.go:126
FunctionTestFindBooksSingleflightCoalescesDB
(t *testing.T)
pkg/api/books_test.go:857
FunctionTestGenerateRandomKey
(t *testing.T)
pkg/auth/auth_test.go:108
FunctionTestGenerateToken
(t *testing.T)
pkg/auth/auth_test.go:81
FunctionTestGenerateTokenErrorWhenSigningKeyUnset
(t *testing.T)
pkg/auth/auth_test.go:135
FunctionTestGenerateTokenRejectsZeroUserID
(t *testing.T)
pkg/auth/auth_test.go:146
FunctionTestGenerateTokenRoundTripUsernameClaim
(t *testing.T)
pkg/auth/auth_test.go:88
FunctionTestGetBookDelegates
(t *testing.T)
pkg/service/book_service_test.go:278
FunctionTestGetenvPositiveDuration
(t *testing.T)
pkg/database/db_test.go:36
FunctionTestGetenvPositiveInt
(t *testing.T)
pkg/database/db_test.go:29
FunctionTestGormBookStoreDeleteByID
(t *testing.T)
pkg/repository/book_gorm_test.go:134
FunctionTestGormBookStoreDeleteByIDNotFound
(t *testing.T)
pkg/repository/book_gorm_test.go:145
FunctionTestGormBookStoreFirstByIDNotFound
(t *testing.T)
pkg/repository/book_gorm_test.go:48
FunctionTestGormBookStoreListConcurrent
(t *testing.T)
pkg/repository/book_gorm_test.go:154
FunctionTestGormBookStoreListCreateFirstByID
(t *testing.T)
pkg/repository/book_gorm_test.go:26
FunctionTestGormBookStoreListOffsetLimit
(t *testing.T)
pkg/repository/book_gorm_test.go:57
FunctionTestGormBookStorePatchFieldsAuthorOnly
(t *testing.T)
pkg/repository/book_gorm_test.go:120
FunctionTestGormBookStorePatchFieldsTitleOnly
(t *testing.T)
pkg/repository/book_gorm_test.go:100
FunctionTestGormBookStoreUpdateFields
(t *testing.T)
pkg/repository/book_gorm_test.go:71
FunctionTestGormBookStoreUpdateFieldsNotFound
(t *testing.T)
pkg/repository/book_gorm_test.go:91
FunctionTestGormUserStoreCreateDuplicateUsername
(t *testing.T)
pkg/repository/user_gorm_test.go:53
FunctionTestGormUserStoreFindByUsername
(t *testing.T)
pkg/repository/user_gorm_test.go:27
FunctionTestGormUserStoreFindByUsernameNotFound
(t *testing.T)
pkg/repository/user_gorm_test.go:44
FunctionTestHashPassword
(t *testing.T)
pkg/auth/auth_test.go:22
FunctionTestHashPasswordClampsLowBCRYPT_COSTToMin
(t *testing.T)
pkg/auth/auth_test.go:55
FunctionTestHashPasswordInvalidBcryptCostEnvFallsBackToDefault
(t *testing.T)
pkg/auth/auth_test.go:68
FunctionTestHashPasswordUsesBCRYPT_COST
(t *testing.T)
pkg/auth/auth_test.go:42
FunctionTestHashPasswordUsesDefaultBcryptCost
(t *testing.T)
pkg/auth/auth_test.go:29
FunctionTestHealthcheck
(t *testing.T)
pkg/api/books_test.go:53
FunctionTestIsBookNotFound
(t *testing.T)
pkg/repository/repository_test.go:11
FunctionTestIsUserNotFound
(t *testing.T)
pkg/repository/repository_test.go:18
FunctionTestIsUsernameUniqueConstraintError
(t *testing.T)
pkg/repository/user_gorm_test.go:68
FunctionTestJWTAuthConcurrentValidRequests
(t *testing.T)
pkg/middleware/jwt_auth_test.go:288
FunctionTestJWTAuthRejectsBadRequests
(t *testing.T)
pkg/middleware/jwt_auth_test.go:156
FunctionTestJWTAuthRejectsZeroUserIDClaim
(t *testing.T)
pkg/middleware/jwt_auth_test.go:70
FunctionTestJWTAuthSetsUserIDContext
(t *testing.T)
pkg/middleware/jwt_auth_test.go:125
FunctionTestJWTAuthSetsUsernameContext
(t *testing.T)
pkg/middleware/jwt_auth_test.go:94
FunctionTestJWTAuthSigningKeyNotConfiguredReturns503
(t *testing.T)
pkg/middleware/jwt_auth_test.go:37
FunctionTestJWTAuthValidBearer
(t *testing.T)
pkg/middleware/jwt_auth_test.go:55
FunctionTestJWTKeyFuncAcceptsHS256
(t *testing.T)
pkg/auth/auth_test.go:187
FunctionTestJWTKeyFuncRejectsNonHS256Algorithms
(t *testing.T)
pkg/auth/auth_test.go:151
FunctionTestListBooksCacheHit
(t *testing.T)
pkg/service/book_service_test.go:90
FunctionTestListBooksCacheUnmarshalError
(t *testing.T)
pkg/service/book_service_test.go:117
FunctionTestListBooksNilRedisUsesStore
(t *testing.T)
pkg/service/book_service_test.go:75
FunctionTestListBooksRedisSetError
(t *testing.T)
pkg/service/book_service_test.go:223
FunctionTestListBooksSingleflightCoalescesConcurrentMiss
(t *testing.T)
pkg/service/book_service_test.go:157
FunctionTestListBooksStoreError
(t *testing.T)
pkg/service/book_service_test.go:134
FunctionTestLivez
(t *testing.T)
pkg/api/probes_test.go:15
FunctionTestLoginHandlerBindValidationLoginUser
(t *testing.T)
pkg/api/user_test.go:91
FunctionTestLoginHandlerInvalidJSON
(t *testing.T)
pkg/api/user_test.go:71
FunctionTestLoginHandlerSuccess
(t *testing.T)
pkg/api/user_test.go:33
FunctionTestLoginHandlerUserNotFound
(t *testing.T)
pkg/api/user_test.go:113
FunctionTestLoginHandlerWrongPassword
(t *testing.T)
pkg/api/user_test.go:141
FunctionTestMaxRequestBodyAllowsSmallPayload
(t *testing.T)
pkg/middleware/max_body_test.go:14
FunctionTestMaxRequestBodyMaxBytesReaderWithoutContentLength
(t *testing.T)
pkg/middleware/max_body_test.go:53
FunctionTestMaxRequestBodyRejectsOversizedContentLength
(t *testing.T)
pkg/middleware/max_body_test.go:35
FunctionTestMockCache_GetExpectation
(t *testing.T)
pkg/cache/cache_test.go:18
FunctionTestMockCache_GetExpectation_miss
(t *testing.T)
pkg/cache/cache_test.go:31
FunctionTestMongoConnectionURI
(t *testing.T)
pkg/database/mongo_test.go:5
FunctionTestNewBookHandler
(t *testing.T)
pkg/api/books_test.go:41
FunctionTestNewDatabaseInvalidPostgresEnv
(t *testing.T)
pkg/database/db_test.go:43
FunctionTestNewRedisClient
(t *testing.T)
pkg/cache/cache_test.go:12
FunctionTestNewUserHandler
(t *testing.T)
pkg/api/user_test.go:22
FunctionTestOKStringEnvelope
(t *testing.T)
pkg/httpresp/httpresp_test.go:13
FunctionTestParseIDParamNilContext
(t *testing.T)
pkg/api/books_test.go:78
FunctionTestPatchBookBumpsGenerationTitleOnly
(t *testing.T)
pkg/service/book_service_test.go:316
FunctionTestPatchBookRequiresAtLeastOneField
(t *testing.T)
pkg/api/books_test.go:405
FunctionTestPatchBookTitleOnly
(t *testing.T)
pkg/api/books_test.go:434
FunctionTestPatchBookWrongOwner
(t *testing.T)
pkg/service/book_service_test.go:372
FunctionTestPingMongoNilCollection
(t *testing.T)
pkg/api/probes_test.go:45
FunctionTestPingPostgresNilDB
(t *testing.T)
pkg/api/probes_test.go:27
FunctionTestPingPostgresSQLiteOK
(t *testing.T)
pkg/api/probes_test.go:32
FunctionTestPingRedisNilClient
(t *testing.T)
pkg/api/probes_test.go:40
FunctionTestPutBookRequiresTitleAndAuthor
(t *testing.T)
pkg/api/books_test.go:420
FunctionTestRedisOptionsFromEnvAddrOverridesHostPort
(t *testing.T)
pkg/cache/redis_env_test.go:33
FunctionTestRedisOptionsFromEnvDefaults
(t *testing.T)
pkg/cache/redis_env_test.go:10
FunctionTestRedisOptionsFromEnvHostAndPort
(t *testing.T)
pkg/cache/redis_env_test.go:45
FunctionTestRedisOptionsFromEnvInvalidDB
(t *testing.T)
pkg/cache/redis_env_test.go:70
FunctionTestRedisOptionsFromEnvInvalidDialTimeout
(t *testing.T)
pkg/cache/redis_env_test.go:131
FunctionTestRedisOptionsFromEnvNegativeDB
(t *testing.T)
pkg/cache/redis_env_test.go:78
FunctionTestRedisOptionsFromEnvNonPositiveDialTimeout
(t *testing.T)
pkg/cache/redis_env_test.go:139
FunctionTestRedisOptionsFromEnvPasswordAndDB
(t *testing.T)
pkg/cache/redis_env_test.go:57
FunctionTestRedisOptionsFromEnvTLSEnabled
(t *testing.T)
pkg/cache/redis_env_test.go:86
FunctionTestRedisOptionsFromEnvTLSInsecure
(t *testing.T)
pkg/cache/redis_env_test.go:101
FunctionTestRedisOptionsFromEnvTruthyTLSOn
(t *testing.T)
pkg/cache/redis_env_test.go:116
FunctionTestRegisterHandlerDBError
(t *testing.T)
pkg/api/user_test.go:193
FunctionTestRegisterHandlerDuplicateUsername
(t *testing.T)
pkg/api/user_test.go:220
FunctionTestRegisterHandlerInvalidJSON
(t *testing.T)
pkg/api/user_test.go:173
FunctionTestReplaceBookBumpsGeneration
(t *testing.T)
pkg/service/book_service_test.go:292
FunctionTestReplaceBookWrongOwner
(t *testing.T)
pkg/service/book_service_test.go:361
FunctionTestRequestContextTimeoutDurationFromEnv
(t *testing.T)
pkg/middleware/request_timeout_test.go:28
FunctionTestRequestContextTimeoutFiresBeforeSlowWork
(t *testing.T)
pkg/middleware/request_timeout_test.go:43
FunctionTestRequestContextTimeoutNoOp
(t *testing.T)
pkg/middleware/request_timeout_test.go:15
FunctionTestRequestIDGenerated
(t *testing.T)
pkg/middleware/request_id_test.go:13
← previousnext →201–300 of 337, ranked by callers