MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / __check_rt_errorcode

Method __check_rt_errorcode

tools/ci/file_check.py:123–129  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

121 self.file_list = file_list
122
123 def __check_rt_errorcode(self, line):
124 pattern = re.compile(r'return\s+(RT_ERROR|RT_ETIMEOUT|RT_EFULL|RT_EEMPTY|RT_ENOMEM|RT_ENOSYS|RT_EBUSY|RT_EIO|RT_EINTR|RT_EINVAL|RT_ENOENT|RT_ENOSPC|RT_EPERM|RT_ETRAP|RT_EFAULT)')
125 match = pattern.search(line)
126 if match:
127 return False
128 else:
129 return True
130
131 def __check_file(self, file_lines, file_path):
132 line_num = 0

Callers 1

__check_fileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected