8.1.7.2. pelicun.tests.code_repetition_checker

A utility script for detecting duplicated blocks of lines across Python test files.

Functions

all_test_files()

Searches for all Python test files in the 'tests' directory and runs the main function to find and print repeated line blocks in each file.

main(file)

Identifies and displays repeated consecutive line blocks within a file, including their line numbers.

pelicun.tests.code_repetition_checker.all_test_files() None[source]

Searches for all Python test files in the ‘tests’ directory and runs the main function to find and print repeated line blocks in each file.

pelicun.tests.code_repetition_checker.main(file: str) None[source]

Identifies and displays repeated consecutive line blocks within a file, including their line numbers.

Parameters:
file: str

Path to the file to be checked for duplicates.