Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RainbowMango/GoExpertProgramming
/ functions
Functions
27 in github.com/RainbowMango/GoExpertProgramming
⨍
Functions
27
◇
Types & classes
0
↓ 4 callers
Function
Add
Add 方法用于演示go test使用
source/gotest/unit.go:4
↓ 4 callers
Function
MakeSliceWithoutAlloc
MakeSliceWithPreAlloc 不预分配
source/gotest/benchmark.go:4
↓ 1 callers
Function
MakeSliceWithPreAlloc
MakeSliceWithPreAlloc 通过预分配Slice的存储空间构造
source/gotest/benchmark.go:15
↓ 1 callers
Function
PrintNames
PrintNames 打印学生姓名
source/gotest/example.go:17
↓ 1 callers
Function
SayGoodbye
SayGoodbye 打印两行字符串
source/gotest/example.go:11
↓ 1 callers
Function
SayHello
SayHello 打印一行字符串
source/gotest/example.go:6
Function
BenchmarkMakeSliceWithPreAlloc
(b *testing.B)
source/gotest/benchmark_test.go:14
Function
BenchmarkMakeSliceWithoutAlloc
(b *testing.B)
source/gotest/benchmark_test.go:8
Function
BenchmarkSetBytes
(b *testing.B)
source/gotest/benchmark_test.go:20
Function
BenchmarkSub
(b *testing.B)
source/gotest/subbenchmark_test.go:27
Function
ExamplePrintNames
检测乱序输出
source/gotest/example_test.go:20
Function
ExampleSayGoodbye
检测多行输出
source/gotest/example_test.go:12
Function
ExampleSayHello
检测单行输出
source/gotest/example_test.go:6
Function
TestAdd
(t *testing.T)
source/gotest/unit_test.go:10
Function
TestArgs
TestArgs 用于演示如何解析-args参数
source/gotest/unit_test.go:22
Function
TestMain
TestMain 用于主动执行各种测试,可以测试前后做setup和tear-down操作
source/gotest/maintest_test.go:9
Function
TestSub
TestSub 内部调用sub1、sub2和sub3三个子测试
source/gotest/subunit_test.go:46
Function
TestSubParallel
TestSubParallel 通过把多个子测试放到一个组中并发执行,同时多个子测试可以共享setup和tear-down
source/gotest/subparallel_test.go:30
Function
benchSub1
(b *testing.B)
source/gotest/subbenchmark_test.go:9
Function
benchSub2
(b *testing.B)
source/gotest/subbenchmark_test.go:15
Function
benchSub3
(b *testing.B)
source/gotest/subbenchmark_test.go:21
Function
parallelTest1
并发子测试,无实际测试工作,仅用于演示
source/gotest/subparallel_test.go:9
Function
parallelTest2
并发子测试,无实际测试工作,仅用于演示
source/gotest/subparallel_test.go:16
Function
parallelTest3
并发子测试,无实际测试工作,仅用于演示
source/gotest/subparallel_test.go:23
Function
sub1
sub1 为子测试,只做加法测试
source/gotest/subunit_test.go:10
Function
sub2
sub2 为子测试,只做加法测试
source/gotest/subunit_test.go:22
Function
sub3
sub3 为子测试,只做加法测试
source/gotest/subunit_test.go:34