categoryToString converts a diagnostic category to its lowercase string representation.
(category tsdiag.Category)
| 212 | |
| 213 | // categoryToString converts a diagnostic category to its lowercase string representation. |
| 214 | func categoryToString(category tsdiag.Category) string { |
| 215 | switch category { |
| 216 | case tsdiag.CategoryError: |
| 217 | return "error" |
| 218 | case tsdiag.CategoryWarning: |
| 219 | return "warning" |
| 220 | case tsdiag.CategorySuggestion: |
| 221 | return "suggestion" |
| 222 | case tsdiag.CategoryMessage: |
| 223 | return "message" |
| 224 | default: |
| 225 | return "error" |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | // DoPipingFlowBaseline generates a .pipings.txt baseline for Effect tests. |
| 230 | func DoPipingFlowBaseline( |
no outgoing calls
no test coverage detected