Skip to content

test: 为cve.go中所有方法添加单元测试,实现100%测试覆盖率 #3

test: 为cve.go中所有方法添加单元测试,实现100%测试覆盖率

test: 为cve.go中所有方法添加单元测试,实现100%测试覆盖率 #3

Triggered via push April 22, 2025 09:57
Status Failure
Total duration 1m 24s
Artifacts

go-tests.yml

on: push
依赖检查和环境准备
16s
依赖检查和环境准备
示例构建
26s
示例构建
单元测试
25s
单元测试
示例运行
26s
示例运行
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 4 warnings
单元测试
Process completed with exit code 1.
单元测试: cve_test.go#L522
undefined: GetRecentCVEs
单元测试: cve_test.go#L515
undefined: GetRecentCVEs
单元测试: cve_test.go#L452
undefined: ValidateCVE
单元测试: cve_test.go#L405
undefined: RemoveDuplicateCVEs
单元测试: cve_test.go#L405
undefined: SortCVEs
单元测试: cve_test.go#L399
undefined: RemoveDuplicateCVEs
单元测试: cve_test.go#L334
undefined: GroupCVEsByYear
单元测试: cve_test.go#L283
undefined: ExtractCVEsFromText
依赖检查和环境准备
Restore cache failed: Dependencies file is not found in /home/runner/work/cpe/cpe. Supported file pattern: go.sum
单元测试
Restore cache failed: Dependencies file is not found in /home/runner/work/cpe/cpe. Supported file pattern: go.sum
示例构建
Restore cache failed: Dependencies file is not found in /home/runner/work/cpe/cpe. Supported file pattern: go.sum
示例运行
Restore cache failed: Dependencies file is not found in /home/runner/work/cpe/cpe. Supported file pattern: go.sum