MCPcopy Create free account
hub / github.com/diem/move / has_errors

Method has_errors

language/move-model/src/model.rs:892–894  ·  view source on GitHub ↗

Returns true if diagnostics have error severity or worse.

(&self)

Source from the content-addressed store, hash-verified

890
891 /// Returns true if diagnostics have error severity or worse.
892 pub fn has_errors(&self) -> bool {
893 self.error_count() > 0
894 }
895
896 /// Returns the number of diagnostics.
897 pub fn diag_count(&self, min_severity: Severity) -> usize {

Callers 15

exec_module_tests_evmMethod · 0.80
prepare_with_overrideFunction · 0.80
proveFunction · 0.80
newMethod · 0.80
check_errorsFunction · 0.80
run_docgenFunction · 0.80
test_runnerFunction · 0.80
check_errorsFunction · 0.80
run_for_unit_testMethod · 0.80

Calls 1

error_countMethod · 0.80

Tested by 4

exec_module_tests_evmMethod · 0.64
test_runnerFunction · 0.64
test_runnerFunction · 0.64