MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / categoryToString

Function categoryToString

internal/effecttest/baseline.go:214–227  ·  view source on GitHub ↗

categoryToString converts a diagnostic category to its lowercase string representation.

(category tsdiag.Category)

Source from the content-addressed store, hash-verified

212
213// categoryToString converts a diagnostic category to its lowercase string representation.
214func 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.
230func DoPipingFlowBaseline(

Callers 1

generateErrorBaselineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected