Skip to content

Commit

Permalink
fuzzing test 4
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminfisk committed Dec 2, 2023
1 parent d7be828 commit 9f67870
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions KubeSec-master/fuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ def fuzzValues():
except Exception as e:
print(f'Input for checkIfWeirdYAML was invalid.\n Error: {e}\n')
flag = True
# try:
# parser.checkParseError(input)
# except Exception as e:
# print(f'Input for checkParseError was invalid.\n Error: {e}\n')
# flag = True
# try:
# parser.count_initial_comment_line(input)
# except Exception as e:
# print(f'Input for count_initial_comment_line was invalid.\n Error: {e}\n')
# flag = True
# if not flag:
# print(f'Input {input} was valid for all functions.\n')
try:
parser.checkParseError(input)
except Exception as e:
print(f'Input for checkParseError was invalid.\n Error: {e}\n')
flag = True
try:
parser.count_initial_comment_line(input)
except Exception as e:
print(f'Input for count_initial_comment_line was invalid.\n Error: {e}\n')
flag = True
if not flag:
print(f'Input {input} was valid for all functions.\n')

if __name__ == '__main__':
fuzzValues()

0 comments on commit 9f67870

Please sign in to comment.