MCPcopy Create free account
hub / github.com/ActiveState/code / __hard

Method __hard

recipes/Python/492210_dal2py/recipe-492210.py:89–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87
88 # Find Any Error
89 def __hard(self):
90 data = chr(0) * self.__disk.SIZE
91 for block, status in enumerate(self.__BIT):
92 if status == 0:
93 assert data == self.__disk.read(self.__index + block * \
94 self.__disk.SIZE, \
95 self.__disk.SIZE)
96
97################################################################################
98

Callers 1

loadMethod · 0.95

Calls 2

enumerateFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected