4.10 工具和测试
#
- 测试框架
1
2
3
4
5
6
7
8
9
10
11
12
13
| /usr/local/go/src/
├── testing/ # 测试框架 - 代码质量保证
│ ├── all_test.go # 所有测试
│ ├── benchmark.go # 基准测试
│ ├── cover.go # 代码覆盖
│ ├── example.go # 示例测试
│ ├── fuzz.go # 模糊测试
│ ├── internal/ # 内部测试
│ ├── match.go # 测试匹配
│ ├── testing.go # 测试实现
│ ├── testing_test.go # 测试框架测试
│ └── 其他测试文件
└── 其他测试工具
|
- 调试和性能分析
1
2
3
4
5
6
7
8
| /usr/local/go/src/
├── runtime/pprof/ # 运行时性能分析 - 性能调优
│ ├── pprof.go # 性能分析实现
│ └── 其他性能分析文件
├── net/http/pprof/ # HTTP性能分析 - Web性能
│ └── pprof.go # HTTP性能分析
├── debug/ # 调试工具
└── 其他性能分析
|
*[不支持的块类型: notionapi.ChildPageBlock]