MCPcopy Index your code
hub / github.com/kopia/kopia / reportSeverity

Method reportSeverity

cli/command_snapshot_create.go:176–185  ·  view source on GitHub ↗
(st notifydata.MultiSnapshotStatus)

Source from the content-addressed store, hash-verified

174}
175
176func (c *commandSnapshotCreate) reportSeverity(st notifydata.MultiSnapshotStatus) notification.Severity {
177 switch st.OverallStatusCode() {
178 case notifydata.StatusCodeFatal:
179 return notification.SeverityError
180 case notifydata.StatusCodeWarnings:
181 return notification.SeverityWarning
182 default:
183 return notification.SeverityReport
184 }
185}
186
187func getTags(tagStrings []string) (map[string]string, error) {
188 numberOfPartsInTagString := 2

Callers 1

runMethod · 0.95

Calls 1

OverallStatusCodeMethod · 0.80

Tested by

no test coverage detected