MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / hasError

Function hasError

loader/loader_test.go:785–792  ·  view source on GitHub ↗
(errors []error, substr string)

Source from the content-addressed store, hash-verified

783}
784
785func hasError(errors []error, substr string) bool {
786 for _, err := range errors {
787 if strings.Contains(err.Error(), substr) {
788 return true
789 }
790 }
791 return false
792}
793
794func keys(m map[string]bool) (keys []string) {
795 for key := range m {

Callers 3

TestErrorReportingFunction · 0.85
TestCyclesFunction · 0.85

Calls 2

ContainsMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected