Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bigwhite/publication
/ functions
Functions
3,647 in github.com/bigwhite/publication
⨍
Functions
3,647
◇
Types & classes
1,301
Function
TestLinkHandler_CreateLink
(t *testing.T)
micro-column/go-testing-journey/go-testing-shortlink/pkg/handler/link_handler_test.go:47
Function
TestLinkRepository
(t *testing.T)
micro-column/go-testing-journey/go-testing-shortlink/pkg/repository/postgres/link_repository_int_test.go:75
Function
TestLinkRepository_Integration
(t *testing.T)
micro-column/go-testing-journey/go-testing-shortlink/pkg/repository/link_repository_int_test.go:7
Function
TestMain
(m *testing.M)
micro-column/sql-query-internals/ch02/main_test.go:77
Function
TestMain
(m *testing.M)
micro-column/sql-query-internals/ch05/main_test.go:67
Function
TestMain
(m *testing.M)
micro-column/sql-query-internals/ch06/main_test.go:58
Function
TestMain
(m *testing.M)
micro-column/sql-query-internals/ch04/main_test.go:79
Function
TestMain
(m *testing.M)
micro-column/sql-query-internals/ch07/main_test.go:28
Function
TestMain
(m *testing.M)
micro-column/go-testing-journey/go-testing-shortlink/pkg/service/service_integration_test.go:34
Function
TestMain
<-- 关键变更:使用原生的 *sql.DB
micro-column/go-testing-journey/go-testing-shortlink/pkg/repository/postgres/link_repository_int_test.go:30
Function
TestMain
(m *testing.M)
micro-column/go-testing-journey/go-testing-shortlink/test/e2e/main_test.go:17
Function
TestMain
(m *testing.M)
column/imooc/go-50tips/sources/classic_package_level_testfixture_test.go:37
Function
TestMain
(m *testing.M)
column/imooc/go-50tips/sources/xunit_suite_level_testfixture_test.go:60
Function
TestMain
TestMain can be used to parse flags.
column/timegeek/go-advanced-course/ch25/goldenfiles/transformer_test.go:16
Function
TestMain
验证优化是否存在的主测试入口 验证优化是否存在的主测试入口
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:198
Function
TestMapKeyConversion
2. 使用[]byte转换为string作为map键的场景
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:41
Function
TestMarkdownDocument
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/types_test.go:70
Function
TestMatrixAddNonSIMD
(t *testing.T)
column/timegeek/go-first-course/why-go-sucks/matadd-avx/matrix_add_test.go:8
Function
TestMatrixAddSIMD
(t *testing.T)
column/timegeek/go-first-course/why-go-sucks/matadd-avx/matrix_add_test.go:30
Function
TestMultiply
(t *testing.T)
column/timegeek/build-agent-harness-from-scratch/ch20/go-tiny-claw/workspace/test_002_code_gen_1777616362/math_test.go:5
Function
TestNewClient
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/github/types_test.go:8
Function
TestNewMyFrameCodec
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3/frame/frame_test.go:11
Function
TestNewMyFrameCodec
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2-with-pprof/frame/frame_test.go:11
Function
TestNewMyFrameCodec
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3-with-syncpool/frame/frame_test.go:11
Function
TestNewMyFrameCodec
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2/frame/frame_test.go:11
Function
TestNewMyFrameCodec
(t *testing.T)
column/timegeek/go-first-course/37/tcp-server-demo1/frame/frame_test.go:11
Function
TestNewParser
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/types_test.go:35
Function
TestNewPool
(t *testing.T)
column/timegeek/go-first-course/35/workerpool2/pool_test.go:5
Function
TestNoDataRace
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
Function
TestParse
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/parser_test.go:14
Function
TestParseInput_WithSubtests
(t *testing.T)
column/timegeek/go-advanced-course/ch25/subtests/parser_test.go:19
Function
TestProcessingError
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/types_test.go:93
Function
TestRangeOverConvertedBytes
1. 使用range遍历string转换为[]byte的场景
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:29
Function
TestRedisClient
(t *testing.T)
column/timegeek/go-first-course/go-testing/testdouble/fake/redis_test.go:13
Function
TestSaveData
(t *testing.T)
column/timegeek/go-first-course/go-testing/testdouble/mock/db/db_test.go:25
Function
TestSchedule
(t *testing.T)
column/timegeek/go-first-course/35/workerpool2/pool_test.go:52
Function
TestSendMail
(t *testing.T)
column/imooc/go-50tips/sources/send_mail_with_disclaimer/v1/mail_test.go:10
Function
TestSendMailWithDisclaimer
(t *testing.T)
column/imooc/go-50tips/sources/send_mail_with_disclaimer/v2/mail_test.go:26
Function
TestSequentialShutdown
(t *testing.T)
column/imooc/go-50tips/sources/go-concurrency-pattern-7_test.go:32
Function
TestShortenerServiceImpl_CreateShortLink
(t *testing.T)
column/timegeek/go-advanced-course/ch32/shortlink-service/internal/service/shortener_service_test.go:74
Function
TestShortenerService_CreateLink
这个测试文件现在是完全独立的,不依赖任何包级别的变量篡改
micro-column/go-testing-journey/go-testing-shortlink/pkg/service/shortener_service_test.go:17
Function
TestShortlink_E2E_HappyPath
TestShortlink_E2E_HappyPath 验证一个完整的用户旅程
micro-column/go-testing-journey/go-testing-shortlink/test/e2e/main_test.go:73
Function
TestSupportedTypes
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/parser_test.go:227
Function
TestSwitchWithConvertedBytes
8. switch语句中使用string([]byte)
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:123
Function
TestTransformText_Golden
(t *testing.T)
column/timegeek/go-advanced-course/ch25/goldenfiles/transformer_test.go:22
Function
TestUnsafeConversions
(t *testing.T)
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:165
Function
TestUnsafeConversionsGo121
(t *testing.T)
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:180
Function
TestUser
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/github/types_test.go:77
Function
TestUserCreationService_WithFakeNotifier
(t *testing.T)
column/timegeek/go-advanced-course/ch25/doubles/fakes/notifier_test.go:39
Function
TestUserService
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
Function
TestUserServiceClient_Contract
(t *testing.T)
micro-column/go-testing-journey/go-testing-shortlink/pkg/client/user_service_client_contract_test.go:17
Function
TestValidate
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/parser_test.go:175
Function
TestValidationError
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/config/types_test.go:175
Function
TestWithTimeoutWithSyncTest
(t *testing.T)
column/timegeek/go-advanced-course/ch25/concurrency/synctest/timeout_test.go:10
Function
Trace
()
column/timegeek/go-first-course/27/instrument_trace/trace.go:41
Method
Try
()
micro-column/distributed-system-guide/ch08/tcc.go:23
Method
Try
()
micro-column/distributed-system-guide/ch08/tcc.go:53
Method
Unwrap
Unwrap 返回原始错误
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/converter/types.go:153
Method
Update
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch01/rod-demo/internal/controller/interface.go:18
Method
Update
Update: PATCH /users/:id
micro-column/api-design-and-implementation/ch01/rod-demo/internal/user/handler.go:48
Method
Update
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch08/rod-demo/internal/controller/interface.go:18
Method
Update
(ctx *gin.Context, id string, req *UpdateReq)
micro-column/api-design-and-implementation/ch08/rod-demo/internal/controller/generic.go:23
Method
Update
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch08/rod-demo/internal/controller/generic.go:163
Method
Update
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch08/rod-demo/internal/user/handler.go:179
Method
Update
* 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
Method
Update
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch09/rod-demo/internal/controller/interface.go:18
Method
Update
(ctx *gin.Context, id string, req *UpdateReq)
micro-column/api-design-and-implementation/ch09/rod-demo/internal/controller/generic.go:23
Method
Update
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch09/rod-demo/internal/controller/generic.go:163
Method
Update
Update: V2 局部更新
micro-column/api-design-and-implementation/ch09/rod-demo/internal/controller/v2/user.go:83
Method
Update
Update: 处理 V1 的局部更新
micro-column/api-design-and-implementation/ch09/rod-demo/internal/controller/v1/user.go:95
Method
Update
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch09/rod-demo/internal/user/handler.go:179
Method
Update
* 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
Method
Update
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch03/rod-demo/internal/controller/interface.go:18
Method
Update
Update 更新资源 遵循 PATCH 语义,req 中的字段应为指针类型以区分零值
micro-column/api-design-and-implementation/ch03/rod-demo/internal/controller/generic.go:28
Method
Update
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch03/rod-demo/internal/controller/generic.go:111
Method
Update
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch03/rod-demo/internal/user/handler.go:86
Method
Update
(ctx *gin.Context, id string, req *dto.UpdateOrderRequest)
micro-column/api-design-and-implementation/ch03/rod-demo/internal/order/handler.go:75
Method
Update
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch02/rod-demo/internal/controller/interface.go:18
Method
Update
Update 更新资源 遵循 PATCH 语义,req 中的字段应为指针类型以区分零值
micro-column/api-design-and-implementation/ch02/rod-demo/internal/controller/generic.go:28
Method
Update
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch02/rod-demo/internal/controller/generic.go:111
Method
Update
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch02/rod-demo/internal/user/handler.go:86
Method
Update
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch05/rod-demo/internal/controller/interface.go:18
Method
Update
(ctx *gin.Context, id string, req *UpdateReq)
micro-column/api-design-and-implementation/ch05/rod-demo/internal/controller/generic.go:22
Method
Update
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch05/rod-demo/internal/controller/generic.go:159
Method
Update
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch05/rod-demo/internal/user/handler.go:161
Method
Update
* 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
Method
Update
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch10/rod-demo/internal/controller/interface.go:18
Method
Update
(ctx *gin.Context, id string, req *UpdateReq)
micro-column/api-design-and-implementation/ch10/rod-demo/internal/controller/generic.go:23
Method
Update
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch10/rod-demo/internal/controller/generic.go:163
Method
Update
(ctx *gin.Context, id string, req *any)
micro-column/api-design-and-implementation/ch10/rod-demo/internal/controller/operation.go:34
Method
Update
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch10/rod-demo/internal/user/handler.go:179
Method
Update
* 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
Method
Update
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch06/rod-demo/internal/controller/interface.go:18
Method
Update
(ctx *gin.Context, id string, req *UpdateReq)
micro-column/api-design-and-implementation/ch06/rod-demo/internal/controller/generic.go:23
Method
Update
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch06/rod-demo/internal/controller/generic.go:163
Method
Update
Update 实现具体的更新逻辑 (核心是处理 Pointer DTO) BaseController 会自动绑定 JSON 到 req,并处理错误
micro-column/api-design-and-implementation/ch06/rod-demo/internal/user/handler.go:179
Method
Update
* 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
Method
Update
Update 更新资源 (PATCH /collection/:id)
micro-column/api-design-and-implementation/ch04/rod-demo/internal/controller/interface.go:18
Method
Update
Update 更新资源 遵循 PATCH 语义,req 中的字段应为指针类型以区分零值
micro-column/api-design-and-implementation/ch04/rod-demo/internal/controller/generic.go:30
Method
Update
Update 处理 PATCH /resources/:id 请求
micro-column/api-design-and-implementation/ch04/rod-demo/internal/controller/generic.go:152
← previous
next →
2,901–3,000 of 3,647, ranked by callers