MCPcopy
hub / github.com/hashicorp/hcl / severityString

Function severityString

cmd/hclspecsuite/diagnostics.go:94–103  ·  view source on GitHub ↗
(severity hcl.DiagnosticSeverity)

Source from the content-addressed store, hash-verified

92}
93
94func severityString(severity hcl.DiagnosticSeverity) string {
95 switch severity {
96 case hcl.DiagError:
97 return "error"
98 case hcl.DiagWarning:
99 return "warning"
100 default:
101 return "unsupported-severity"
102 }
103}
104
105func rangeString(rng hcl.Range) string {
106 return fmt.Sprintf(

Callers 1

runTestInputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected