Skip to content

Commit e0b7980

Browse files
committed
add no cover to main
1 parent 7b520ce commit e0b7980

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp_linter_hooks/clang_format.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ def _print_verbose_info(command: list, retval: int, output: str) -> None:
6161

6262

6363
def main() -> int:
64-
retval, output = run_clang_format()
64+
retval, output = run_clang_format() # pragma: no cover
6565

6666
# Print output for errors, but not for dry-run mode
67-
if retval != 0 and retval != -1 and output.strip():
67+
if retval != 0 and retval != -1 and output.strip(): # pragma: no cover
6868
print(output)
6969

7070
# Convert dry-run special code to success
71-
return 0 if retval == -1 else retval
71+
return 0 if retval == -1 else retval # pragma: no cover
7272

7373

7474
if __name__ == "__main__":

0 commit comments

Comments
 (0)