MCPcopy Create free account

hub / github.com/bigwhite/publication / functions

Functions3,647 in github.com/bigwhite/publication

FunctionTestLinkHandler_CreateLink
(t *testing.T)
micro-column/go-testing-journey/go-testing-shortlink/pkg/handler/link_handler_test.go:47
FunctionTestLinkRepository
(t *testing.T)
micro-column/go-testing-journey/go-testing-shortlink/pkg/repository/postgres/link_repository_int_test.go:75
FunctionTestLinkRepository_Integration
(t *testing.T)
micro-column/go-testing-journey/go-testing-shortlink/pkg/repository/link_repository_int_test.go:7
FunctionTestMain
(m *testing.M)
micro-column/sql-query-internals/ch02/main_test.go:77
FunctionTestMain
(m *testing.M)
micro-column/sql-query-internals/ch05/main_test.go:67
FunctionTestMain
(m *testing.M)
micro-column/sql-query-internals/ch06/main_test.go:58
FunctionTestMain
(m *testing.M)
micro-column/sql-query-internals/ch04/main_test.go:79
FunctionTestMain
(m *testing.M)
micro-column/sql-query-internals/ch07/main_test.go:28
FunctionTestMain
(m *testing.M)
micro-column/go-testing-journey/go-testing-shortlink/pkg/service/service_integration_test.go:34
FunctionTestMain
<-- 关键变更:使用原生的 *sql.DB
micro-column/go-testing-journey/go-testing-shortlink/pkg/repository/postgres/link_repository_int_test.go:30
FunctionTestMain
(m *testing.M)
micro-column/go-testing-journey/go-testing-shortlink/test/e2e/main_test.go:17
FunctionTestMain
(m *testing.M)
column/imooc/go-50tips/sources/classic_package_level_testfixture_test.go:37
FunctionTestMain
(m *testing.M)
column/imooc/go-50tips/sources/xunit_suite_level_testfixture_test.go:60
FunctionTestMain
TestMain can be used to parse flags.
column/timegeek/go-advanced-course/ch25/goldenfiles/transformer_test.go:16
FunctionTestMain
验证优化是否存在的主测试入口 验证优化是否存在的主测试入口
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:198
FunctionTestMapKeyConversion
2. 使用[]byte转换为string作为map键的场景
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:41
FunctionTestMarkdownDocument
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/types_test.go:70
FunctionTestMatrixAddNonSIMD
(t *testing.T)
column/timegeek/go-first-course/why-go-sucks/matadd-avx/matrix_add_test.go:8
FunctionTestMatrixAddSIMD
(t *testing.T)
column/timegeek/go-first-course/why-go-sucks/matadd-avx/matrix_add_test.go:30
FunctionTestMultiply
(t *testing.T)
column/timegeek/build-agent-harness-from-scratch/ch20/go-tiny-claw/workspace/test_002_code_gen_1777616362/math_test.go:5
FunctionTestNewClient
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/github/types_test.go:8
FunctionTestNewMyFrameCodec
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3/frame/frame_test.go:11
FunctionTestNewMyFrameCodec
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2-with-pprof/frame/frame_test.go:11
FunctionTestNewMyFrameCodec
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3-with-syncpool/frame/frame_test.go:11
FunctionTestNewMyFrameCodec
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2/frame/frame_test.go:11
FunctionTestNewMyFrameCodec
(t *testing.T)
column/timegeek/go-first-course/37/tcp-server-demo1/frame/frame_test.go:11
FunctionTestNewParser
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/types_test.go:35
FunctionTestNewPool
(t *testing.T)
column/timegeek/go-first-course/35/workerpool2/pool_test.go:5
FunctionTestNoDataRace
TestNoDataRace demonstrates the correct way to handle shared state concurrently. Run with `go test -race -run TestNoDataRace` to verify no race is det
column/timegeek/go-advanced-course/ch25/concurrency/race/race_condition_test.go:56
FunctionTestParse
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/parser_test.go:14
FunctionTestParseInput_WithSubtests
(t *testing.T)
column/timegeek/go-advanced-course/ch25/subtests/parser_test.go:19
FunctionTestProcessingError
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/types_test.go:93
FunctionTestRangeOverConvertedBytes
1. 使用range遍历string转换为[]byte的场景
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:29
FunctionTestRedisClient
(t *testing.T)
column/timegeek/go-first-course/go-testing/testdouble/fake/redis_test.go:13
FunctionTestSaveData
(t *testing.T)
column/timegeek/go-first-course/go-testing/testdouble/mock/db/db_test.go:25
FunctionTestSchedule
(t *testing.T)
column/timegeek/go-first-course/35/workerpool2/pool_test.go:52
FunctionTestSendMail
(t *testing.T)
column/imooc/go-50tips/sources/send_mail_with_disclaimer/v1/mail_test.go:10
FunctionTestSendMailWithDisclaimer
(t *testing.T)
column/imooc/go-50tips/sources/send_mail_with_disclaimer/v2/mail_test.go:26
FunctionTestSequentialShutdown
(t *testing.T)
column/imooc/go-50tips/sources/go-concurrency-pattern-7_test.go:32
FunctionTestShortenerServiceImpl_CreateShortLink
(t *testing.T)
column/timegeek/go-advanced-course/ch32/shortlink-service/internal/service/shortener_service_test.go:74
FunctionTestShortenerService_CreateLink
这个测试文件现在是完全独立的,不依赖任何包级别的变量篡改
micro-column/go-testing-journey/go-testing-shortlink/pkg/service/shortener_service_test.go:17
FunctionTestShortlink_E2E_HappyPath
TestShortlink_E2E_HappyPath 验证一个完整的用户旅程
micro-column/go-testing-journey/go-testing-shortlink/test/e2e/main_test.go:73
FunctionTestSupportedTypes
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/parser_test.go:227
FunctionTestSwitchWithConvertedBytes
8. switch语句中使用string([]byte)
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:123
FunctionTestTransformText_Golden
(t *testing.T)
column/timegeek/go-advanced-course/ch25/goldenfiles/transformer_test.go:22
FunctionTestUnsafeConversions
(t *testing.T)
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:165
FunctionTestUnsafeConversionsGo121
(t *testing.T)
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:180
FunctionTestUser
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/github/types_test.go:77
FunctionTestUserCreationService_WithFakeNotifier
(t *testing.T)
column/timegeek/go-advanced-course/ch25/doubles/fakes/notifier_test.go:39
FunctionTestUserService
TestUserService acts as the main entry point for testing all UserService functionalities. It demonstrates how to group tests for different methods usi
column/timegeek/go-advanced-course/ch25/testhierarchy/user_service_test.go:9
FunctionTestUserServiceClient_Contract
(t *testing.T)
micro-column/go-testing-journey/go-testing-shortlink/pkg/client/user_service_client_contract_test.go:17
FunctionTestValidate
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/parser_test.go:175
FunctionTestValidationError
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/config/types_test.go:175
FunctionTestWithTimeoutWithSyncTest
(t *testing.T)
column/timegeek/go-advanced-course/ch25/concurrency/synctest/timeout_test.go:10
FunctionTrace
()
column/timegeek/go-first-course/27/instrument_trace/trace.go:41
MethodTry
()
micro-column/distributed-system-guide/ch08/tcc.go:23
MethodTry
()
micro-column/distributed-system-guide/ch08/tcc.go:53
MethodUnwrap
Unwrap 返回原始错误
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/converter/types.go:153
MethodUpdate
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch01/rod-demo/internal/controller/interface.go:18
MethodUpdate
Update: PATCH /users/:id
micro-column/api-design-and-implementation/ch01/rod-demo/internal/user/handler.go:48
MethodUpdate
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch08/rod-demo/internal/controller/interface.go:18
MethodUpdate
(ctx *gin.Context, id string, req *UpdateReq)
micro-column/api-design-and-implementation/ch08/rod-demo/internal/controller/generic.go:23
MethodUpdate
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch08/rod-demo/internal/controller/generic.go:163
MethodUpdate
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch08/rod-demo/internal/user/handler.go:179
MethodUpdate
* func (s *OrderService) List(ctx *gin.Context) ([]*domain.Order, error) { s.mu.RLock() defer s.mu.RUnlock() orders := make([]*domain.Order, 0, le
micro-column/api-design-and-implementation/ch08/rod-demo/internal/order/handler.go:82
MethodUpdate
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch09/rod-demo/internal/controller/interface.go:18
MethodUpdate
(ctx *gin.Context, id string, req *UpdateReq)
micro-column/api-design-and-implementation/ch09/rod-demo/internal/controller/generic.go:23
MethodUpdate
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch09/rod-demo/internal/controller/generic.go:163
MethodUpdate
Update: V2 局部更新
micro-column/api-design-and-implementation/ch09/rod-demo/internal/controller/v2/user.go:83
MethodUpdate
Update: 处理 V1 的局部更新
micro-column/api-design-and-implementation/ch09/rod-demo/internal/controller/v1/user.go:95
MethodUpdate
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch09/rod-demo/internal/user/handler.go:179
MethodUpdate
* func (s *OrderService) List(ctx *gin.Context) ([]*domain.Order, error) { s.mu.RLock() defer s.mu.RUnlock() orders := make([]*domain.Order, 0, le
micro-column/api-design-and-implementation/ch09/rod-demo/internal/order/handler.go:82
MethodUpdate
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch03/rod-demo/internal/controller/interface.go:18
MethodUpdate
Update 更新资源 遵循 PATCH 语义,req 中的字段应为指针类型以区分零值
micro-column/api-design-and-implementation/ch03/rod-demo/internal/controller/generic.go:28
MethodUpdate
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch03/rod-demo/internal/controller/generic.go:111
MethodUpdate
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch03/rod-demo/internal/user/handler.go:86
MethodUpdate
(ctx *gin.Context, id string, req *dto.UpdateOrderRequest)
micro-column/api-design-and-implementation/ch03/rod-demo/internal/order/handler.go:75
MethodUpdate
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch02/rod-demo/internal/controller/interface.go:18
MethodUpdate
Update 更新资源 遵循 PATCH 语义,req 中的字段应为指针类型以区分零值
micro-column/api-design-and-implementation/ch02/rod-demo/internal/controller/generic.go:28
MethodUpdate
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch02/rod-demo/internal/controller/generic.go:111
MethodUpdate
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch02/rod-demo/internal/user/handler.go:86
MethodUpdate
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch05/rod-demo/internal/controller/interface.go:18
MethodUpdate
(ctx *gin.Context, id string, req *UpdateReq)
micro-column/api-design-and-implementation/ch05/rod-demo/internal/controller/generic.go:22
MethodUpdate
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch05/rod-demo/internal/controller/generic.go:159
MethodUpdate
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch05/rod-demo/internal/user/handler.go:161
MethodUpdate
* func (s *OrderService) List(ctx *gin.Context) ([]*domain.Order, error) { s.mu.RLock() defer s.mu.RUnlock() orders := make([]*domain.Order, 0, le
micro-column/api-design-and-implementation/ch05/rod-demo/internal/order/handler.go:82
MethodUpdate
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch10/rod-demo/internal/controller/interface.go:18
MethodUpdate
(ctx *gin.Context, id string, req *UpdateReq)
micro-column/api-design-and-implementation/ch10/rod-demo/internal/controller/generic.go:23
MethodUpdate
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch10/rod-demo/internal/controller/generic.go:163
MethodUpdate
(ctx *gin.Context, id string, req *any)
micro-column/api-design-and-implementation/ch10/rod-demo/internal/controller/operation.go:34
MethodUpdate
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch10/rod-demo/internal/user/handler.go:179
MethodUpdate
* func (s *OrderService) List(ctx *gin.Context) ([]*domain.Order, error) { s.mu.RLock() defer s.mu.RUnlock() orders := make([]*domain.Order, 0, le
micro-column/api-design-and-implementation/ch10/rod-demo/internal/order/handler.go:82
MethodUpdate
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch06/rod-demo/internal/controller/interface.go:18
MethodUpdate
(ctx *gin.Context, id string, req *UpdateReq)
micro-column/api-design-and-implementation/ch06/rod-demo/internal/controller/generic.go:23
MethodUpdate
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch06/rod-demo/internal/controller/generic.go:163
MethodUpdate
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch06/rod-demo/internal/user/handler.go:179
MethodUpdate
* func (s *OrderService) List(ctx *gin.Context) ([]*domain.Order, error) { s.mu.RLock() defer s.mu.RUnlock() orders := make([]*domain.Order, 0, le
micro-column/api-design-and-implementation/ch06/rod-demo/internal/order/handler.go:82
MethodUpdate
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch04/rod-demo/internal/controller/interface.go:18
MethodUpdate
Update 更新资源 遵循 PATCH 语义,req 中的字段应为指针类型以区分零值
micro-column/api-design-and-implementation/ch04/rod-demo/internal/controller/generic.go:30
MethodUpdate
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch04/rod-demo/internal/controller/generic.go:152
← previousnext →2,901–3,000 of 3,647, ranked by callers