MCPcopy Create free account

hub / github.com/bigwhite/publication / functions

Functions3,647 in github.com/bigwhite/publication

MethodStop
Stop gracefully shuts down the HTTP server.
column/timegeek/go-advanced-course/ch22/app-skeleton-demo/internal/transport/http/server.go:116
MethodString
()
micro-column/data-compression-fundamentals/ch02/huffman-demo/tree/node.go:18
MethodString
String 方便打印
micro-column/ai-era-software-engineer-algorithm-map/ch13/permission_system/main.go:16
MethodString
()
column/imooc/go-50tips/sources/expvar_demo3.go:15
MethodString
()
column/imooc/go-50tips/sources/java_stringer/foo.java:5
MethodString
()
column/imooc/go-50tips/sources/java_stringer/bar.java:5
MethodSupportedTypes
SupportedTypes 返回支持的资源类型
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/parser.go:149
FunctionSuspendUserAction
SuspendUserAction 充当了“翻译官”和“保镖”
micro-column/agentic-api-in-action/ch06/agentic-gateway-demo/adapter/user_adapter.go:18
MethodSwap
(i, j int)
micro-column/data-compression-fundamentals/ch02/huffman-demo/tree/queue.go:17
MethodSwap
最小堆
micro-column/ai-era-software-engineer-algorithm-map/ch01/k_merge/main.go:20
MethodSwap
Min Heap
micro-column/ai-era-software-engineer-algorithm-map/ch10/network_delay/main.go:19
MethodSwap
(i, j int)
micro-column/ai-era-software-engineer-algorithm-map/ch10/service_router/main.go:35
MethodSwap
(i, j int)
micro-column/ai-era-software-engineer-algorithm-map/ch06/delay_scheduler/main.go:28
MethodSwap
小顶堆
micro-column/ai-era-software-engineer-algorithm-map/ch06/kth_largest/main.go:13
MethodSwap
(i, j int)
micro-column/ai-era-software-engineer-algorithm-map/ch06/median_finder/main.go:13
MethodSwap
核心区别:>
micro-column/ai-era-software-engineer-algorithm-map/ch06/median_finder/main.go:28
FunctionSynchronize
()
micro-column/ai-engineer-gpu-introduction/ch10/go-cuda-demo/cuda/driver.go:121
FunctionTestAdd
(t *testing.T)
column/timegeek/go-first-course/go-testing/coverage/demo_test.go:5
FunctionTestAdd
(t *testing.T)
column/timegeek/go-first-course/go-testing/add/add_test.go:7
FunctionTestAdd
(t *testing.T)
column/timegeek/go-advanced-course/ch25/basics/calc_test.go:8
FunctionTestAddWithSubtest
(t *testing.T)
column/timegeek/go-first-course/go-testing/add/add_sub_test.go:5
FunctionTestAddWithTable
(t *testing.T)
column/timegeek/go-first-course/go-testing/add/add_table_test.go:5
FunctionTestAfterFuncWithSyncTest
(t *testing.T)
column/timegeek/go-advanced-course/ch25/concurrency/synctest/afterfunc_test.go:9
FunctionTestAppendStringToBytes
3. append([]byte, string...)操作
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:53
FunctionTestAttendeeMarshal
(t *testing.T)
column/imooc/go-50tips/sources/testdata-demo2/attendee_test.go:14
FunctionTestAttendeeMarshal
(t *testing.T)
column/imooc/go-50tips/sources/testdata-demo1/attendee_test.go:11
FunctionTestBuilder
(t *testing.T)
column/imooc/go-50tips/sources/strings-test-demo/builder_test.go:113
FunctionTestBytesPackageWithString
6. bytes包函数的string参数
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:99
FunctionTestCodePipelineAgent_Evaluation
(t *testing.T)
micro-column/google-adk-in-action/ch06/go-agent-workflow/main_test.go:101
FunctionTestComment
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/github/types_test.go:59
FunctionTestCompare
(t *testing.T)
column/imooc/go-50tips/sources/non_table_driven_strings_test.go:8
FunctionTestCompare
(t *testing.T)
column/imooc/go-50tips/sources/table_driven_strings_by_offset_test.go:8
FunctionTestCompare
(t *testing.T)
column/imooc/go-50tips/sources/table_driven_strings_by_name_test.go:8
FunctionTestCompare
(t *testing.T)
column/imooc/go-50tips/sources/table_driven_strings_test.go:8
FunctionTestCompare
(t *testing.T)
column/imooc/go-50tips/sources/table_driven_strings_more_cases_test.go:8
FunctionTestCompare
(t *testing.T)
column/imooc/go-50tips/sources/table_driven_strings_with_map_test.go:8
FunctionTestCompare
(t *testing.T)
column/imooc/go-50tips/sources/table_driven_strings_with_subtest_test.go:8
FunctionTestCompare
(t *testing.T)
column/imooc/go-50tips/sources/strings-test-demo/compare_test.go:126
FunctionTestCompareStringWithBytes
5. 字符串比较操作
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:75
FunctionTestComposeAndSendFail
(t *testing.T)
column/imooc/go-50tips/sources/mocktest/mailclient_test.go:51
FunctionTestComposeAndSendFail
(t *testing.T)
column/imooc/go-50tips/sources/faketest1/mailclient_test.go:31
FunctionTestComposeAndSendOk
(t *testing.T)
column/imooc/go-50tips/sources/mocktest/mailclient_test.go:17
FunctionTestComposeAndSendOk
(t *testing.T)
column/imooc/go-50tips/sources/faketest1/mailclient_test.go:16
FunctionTestComposeAndSendWithSign
(t *testing.T)
column/imooc/go-50tips/sources/stubtest3/mailclient_test.go:22
FunctionTestComposeAndSendWithSign
(t *testing.T)
column/imooc/go-50tips/sources/stubtest2/mailclient_test.go:20
FunctionTestConcurrentShutdown
(t *testing.T)
column/imooc/go-50tips/sources/go-concurrency-pattern-7_test.go:15
FunctionTestConfigValidate
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/config/types_test.go:128
FunctionTestConvertGitHubComment
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/github/client_test.go:424
FunctionTestConvertGitHubIssue
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/github/client_test.go:347
FunctionTestCopyStringToBytes
4. copy([]byte, string)操作
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:64
FunctionTestCreateAndRedirect_HappyPath
--- TestCreateAndRedirect_HappyPath 函数及其辅助函数 assertEventually 完全不变 ---
micro-column/go-testing-journey/go-testing-shortlink/pkg/service/service_integration_test.go:116
FunctionTestDataRace
TestDataRace demonstrates a data race condition. Run with `go test -race -run TestDataRace` to detect it.
column/timegeek/go-advanced-course/ch25/concurrency/race/race_condition_test.go:19
FunctionTestDecode
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3/frame/frame_test.go:45
FunctionTestDecode
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2-with-pprof/frame/frame_test.go:45
FunctionTestDecode
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3-with-syncpool/frame/frame_test.go:45
FunctionTestDecode
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2/frame/frame_test.go:45
FunctionTestDecode
(t *testing.T)
column/timegeek/go-first-course/37/tcp-server-demo1/frame/frame_test.go:45
FunctionTestDecodeWithReadFail
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3/frame/frame_test.go:111
FunctionTestDecodeWithReadFail
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2-with-pprof/frame/frame_test.go:111
FunctionTestDecodeWithReadFail
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3-with-syncpool/frame/frame_test.go:111
FunctionTestDecodeWithReadFail
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2/frame/frame_test.go:111
FunctionTestDecodeWithReadFail
(t *testing.T)
column/timegeek/go-first-course/37/tcp-server-demo1/frame/frame_test.go:111
FunctionTestDefaultConfig
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/config/types_test.go:8
FunctionTestDefaultOptions
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/types_test.go:7
FunctionTestDivide_TableDriven
(t *testing.T)
column/timegeek/go-advanced-course/ch25/tabledriven/calculator_test.go:18
FunctionTestEmployeeMaleCount
(t *testing.T)
column/imooc/go-50tips/sources/method_set_9_test.go:13
FunctionTestEncode
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3/frame/frame_test.go:18
FunctionTestEncode
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2-with-pprof/frame/frame_test.go:18
FunctionTestEncode
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3-with-syncpool/frame/frame_test.go:18
FunctionTestEncode
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2/frame/frame_test.go:18
FunctionTestEncode
(t *testing.T)
column/timegeek/go-first-course/37/tcp-server-demo1/frame/frame_test.go:18
FunctionTestEncodeWithWriteFail
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3/frame/frame_test.go:87
FunctionTestEncodeWithWriteFail
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2-with-pprof/frame/frame_test.go:87
FunctionTestEncodeWithWriteFail
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo3-with-syncpool/frame/frame_test.go:87
FunctionTestEncodeWithWriteFail
(t *testing.T)
column/timegeek/go-first-course/38/tcp-server-demo2/frame/frame_test.go:87
FunctionTestEncodeWithWriteFail
(t *testing.T)
column/timegeek/go-first-course/37/tcp-server-demo1/frame/frame_test.go:87
FunctionTestForLoopOverConvertedBytes
7. for循环遍历string转换为[]byte的场景
column/timegeek/go-advanced-course/ch05/zerocopy_test.go:109
FunctionTestFunc1
(t *testing.T)
column/imooc/go-50tips/sources/classic_package_level_testfixture_test.go:15
FunctionTestFunc1
(t *testing.T)
column/imooc/go-50tips/sources/classic_testfixture_test.go:15
FunctionTestFunc1
(t *testing.T)
column/imooc/go-50tips/sources/xunit_suite_level_testfixture_test.go:27
FunctionTestFunc2
(t *testing.T)
column/imooc/go-50tips/sources/classic_package_level_testfixture_test.go:20
FunctionTestFunc2
(t *testing.T)
column/imooc/go-50tips/sources/classic_testfixture_test.go:20
FunctionTestFunc2
(t *testing.T)
column/imooc/go-50tips/sources/xunit_suite_level_testfixture_test.go:46
FunctionTestFunc3
(t *testing.T)
column/imooc/go-50tips/sources/classic_package_level_testfixture_test.go:25
FunctionTestFunc3
(t *testing.T)
column/imooc/go-50tips/sources/classic_testfixture_test.go:25
FunctionTestGenerateShortCode_Coverage
TestGenerateShortCode_Coverage 用于专门提升 generateShortCode 的测试覆盖率
micro-column/go-testing-journey/go-testing-shortlink/pkg/service/shortener_service_test.go:151
FunctionTestGetBoolEnv
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/config/types_test.go:61
FunctionTestGetData
(t *testing.T)
column/timegeek/go-first-course/go-testing/testdouble/mock/db/db_test.go:42
FunctionTestGetEnvironment
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/config/types_test.go:28
FunctionTestGetIssue
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/github/client_test.go:135
FunctionTestGetIssueComments
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/github/client_test.go:264
FunctionTestGetWeatherAdvice_WithStub
(t *testing.T)
column/timegeek/go-advanced-course/ch25/doubles/stubs/weather_test.go:20
FunctionTestGetWeatherInfoOK
(t *testing.T)
column/imooc/go-50tips/sources/stubtest1/weather_cli_test.go:31
FunctionTestHelperFunction
TestHelperFunction is a test helper, should be ignored by our check
column/timegeek/go-advanced-course/ch26/customanalyzer/testpkg/testpkg.go:28
FunctionTestImportantOperationService_WithMockAudit
(t *testing.T)
column/timegeek/go-advanced-course/ch25/doubles/mocks/audit_test.go:24
FunctionTestIntegration_CreateAndRedirectLink
(t *testing.T)
column/timegeek/go-advanced-course/ch32/shortlink-service/internal/handler/link_handler_integration_test.go:78
FunctionTestIntegration_CreateLink_InvalidInput
可以添加更多集成测试用例,例如: - 测试无效输入 (如创建时long_url为空) - 测试并发创建 (如果store支持并发) - 测试短码大小写不敏感 (如果业务逻辑如此定义) - 等等
column/timegeek/go-advanced-course/ch32/shortlink-service/internal/handler/link_handler_integration_test.go:140
FunctionTestIsPositive
(t *testing.T)
column/timegeek/go-first-course/go-testing/coverage/demo_test.go:17
FunctionTestIsValidURL
(t *testing.T)
micro-column/go-testing-journey/go-testing-shortlink/pkg/validator/url_test.go:7
FunctionTestIssue
(t *testing.T)
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/github/types_test.go:39
← previousnext →2,801–2,900 of 3,647, ranked by callers