diff --git a/standardize_test_format/__main__.py b/standardize_test_format/__main__.py index 079d925..1cad75a 100644 --- a/standardize_test_format/__main__.py +++ b/standardize_test_format/__main__.py @@ -87,7 +87,9 @@ def main(): ) num_modified = 0 - for path in test_files(args.repo): + relevant_files = list(test_files(args.repo)) + logger.info('Found %d test files', len(relevant_files)) + for path in relevant_files: was_modified = standardize_in_file( path, inline=args.i, diff --git a/test/test_standardize.py b/test/test_standardize.py index 331a17b..5f0ef52 100644 --- a/test/test_standardize.py +++ b/test/test_standardize.py @@ -124,6 +124,18 @@ import org.junit.jupiter.api.DisplayName; public void zkBinderContextImplPropagatesLotFieldsDirectlyFromUnderlyingZkBinderContext() """ +INPUT_6 = """ +/** Fail when uploading the wrong share */ +@ContractTest(previous = "registerSharing") +void TODO2() { +""" + +OUTPUT_6 = """ +/** Fail when uploading the wrong share */ +@ContractTest(previous = "registerSharing") +void failWhenUploadingTheWrongShare() { +""" + JAVADOC_TO_DISPLAYNAME = [ (INPUT_1, OUTPUT_1), (INPUT_2, OUTPUT_2), @@ -133,6 +145,7 @@ JAVADOC_TO_DISPLAYNAME = [ (INPUT_5B, OUTPUT_5), (INPUT_5C, OUTPUT_5), (INPUT_5D, OUTPUT_5), + (INPUT_6, OUTPUT_6), ]