NewFormatter 创建格式化器
(config *types.Config)
| 15 | |
| 16 | // NewFormatter 创建格式化器 |
| 17 | func NewFormatter(config *types.Config) *Formatter { |
| 18 | return &Formatter{ |
| 19 | config: config, |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | // FormatSingleResult 格式化单个检测结果 |
| 24 | func (f *Formatter) FormatSingleResult(result *types.DetectionResult) string { |
no outgoing calls
no test coverage detected