How do I develop a test design for the following code based on equivalence partitioning, boundary value analysis and white-box testing.
def [choose-a-name](inputFile, searchLine):
success = True
try:
lineNo = 1
with open(inputFile) as inFile:
for line in inFile.read().splitlines():
if line == searchLine:
print(lineNo)
lineNo += 1
except OSError:
success = False
return success
Aucun commentaire:
Enregistrer un commentaire