Cog coverage: 38.58%

Files Functions Classes

coverage.py v7.6.7, created at 2024-11-15 09:22 -0500

File function statements missing excluded branches partial coverage
cogapp/__init__.py (no function) 1 0 0 0 0 100.00%
cogapp/__main__.py (no function) 3 3 0 0 0 0.00%
cogapp/cogapp.py CogError.__init__ 3 0 0 2 0 100.00%
cogapp/cogapp.py CogGenerator.__init__ 4 0 0 0 0 100.00%
cogapp/cogapp.py CogGenerator.parse_marker 1 0 0 0 0 100.00%
cogapp/cogapp.py CogGenerator.parse_line 1 0 0 0 0 100.00%
cogapp/cogapp.py CogGenerator.get_code 5 0 0 2 0 100.00%
cogapp/cogapp.py CogGenerator.evaluate 33 4 0 10 3 83.72%
cogapp/cogapp.py CogGenerator.msg 1 1 0 0 0 0.00%
cogapp/cogapp.py CogGenerator.out 10 0 0 8 0 100.00%
cogapp/cogapp.py CogGenerator.outl 2 0 0 0 0 100.00%
cogapp/cogapp.py CogGenerator.error 1 1 0 0 0 0.00%
cogapp/cogapp.py CogOptions.__init__ 22 0 0 0 0 100.00%
cogapp/cogapp.py CogOptions.__eq__ 1 1 0 0 0 0.00%
cogapp/cogapp.py CogOptions.clone 1 1 0 0 0 0.00%
cogapp/cogapp.py CogOptions.add_to_include_path 2 2 0 0 0 0.00%
cogapp/cogapp.py CogOptions.parse_args 46 46 1 40 0 0.00%
cogapp/cogapp.py CogOptions._parse_markers 4 4 0 0 0 0.00%
cogapp/cogapp.py CogOptions.validate 4 4 0 4 0 0.00%
cogapp/cogapp.py Cog.__init__ 6 0 0 0 0 100.00%
cogapp/cogapp.py Cog._fix_end_output_patterns 3 0 0 0 0 100.00%
cogapp/cogapp.py Cog.show_warning 1 1 0 0 0 0.00%
cogapp/cogapp.py Cog.is_begin_spec_line 1 0 0 0 0 100.00%
cogapp/cogapp.py Cog.is_end_spec_line 1 0 0 0 0 100.00%
cogapp/cogapp.py Cog.is_end_output_line 1 0 0 0 0 100.00%
cogapp/cogapp.py Cog.create_cog_module 2 0 0 0 0 100.00%
cogapp/cogapp.py Cog.open_output_file 9 9 0 4 0 0.00%
cogapp/cogapp.py Cog.open_input_file 3 3 0 2 0 0.00%
cogapp/cogapp.py Cog.process_file 104 23 0 60 21 70.73%
cogapp/cogapp.py Cog.suffix_lines 4 2 0 2 1 50.00%
cogapp/cogapp.py Cog.process_string 4 0 0 0 0 100.00%
cogapp/cogapp.py Cog.replace_file 11 11 0 6 0 0.00%
cogapp/cogapp.py Cog.save_include_path 2 2 0 0 0 0.00%
cogapp/cogapp.py Cog.restore_include_path 3 3 0 0 0 0.00%
cogapp/cogapp.py Cog.add_to_include_path 2 2 0 0 0 0.00%
cogapp/cogapp.py Cog.process_one_file 31 31 0 16 0 0.00%
cogapp/cogapp.py Cog.process_wildcards 5 5 0 4 0 0.00%
cogapp/cogapp.py Cog.process_file_list 11 11 0 4 0 0.00%
cogapp/cogapp.py Cog.process_arguments 16 16 0 8 0 0.00%
cogapp/cogapp.py Cog.callable_main 16 16 0 10 0 0.00%
cogapp/cogapp.py Cog.main 20 20 0 0 0 0.00%
cogapp/cogapp.py find_cog_source 14 8 0 8 2 45.45%
cogapp/cogapp.py main 1 1 0 0 0 0.00%
cogapp/cogapp.py (no function) 71 0 0 0 0 100.00%
cogapp/makefiles.py make_files 11 11 0 8 0 0.00%
cogapp/makefiles.py remove_files 7 7 0 6 0 0.00%
cogapp/makefiles.py (no function) 4 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_no_cog 3 0 0 2 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_simple 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_empty_cog 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_multiple_cogs 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_trim_blank_lines 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_trim_empty_blank_lines 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_trim_blank_lines_with_last_partial 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_cog_out_dedent 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test22_end_of_line 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_indented_code 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_prefixed_code 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_prefixed_indented_code 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_bogus_prefix_match 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_no_final_newline 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_no_output_at_all 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_purely_blank_line 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_empty_outl 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_first_line_num 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_compact_one_line_code 4 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_inside_out_compact 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_sharing_globals 4 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_assert_in_cog_code 4 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test_cog_previous 4 0 0 0 0 100.00%
cogapp/test_cogapp.py CogOptionsTests.test_equality 7 7 0 0 0 0.00%
cogapp/test_cogapp.py CogOptionsTests.test_cloning 9 9 0 0 0 0.00%
cogapp/test_cogapp.py CogOptionsTests.test_combining_flags 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogOptionsTests.test_markers 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogOptionsTests.test_markers_switch 5 5 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.is_bad 3 3 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.test_begin_no_end 2 2 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.test_no_eoo 4 4 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.test_start_with_end 4 4 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.test_start_with_eoo 4 4 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.test_no_end 4 4 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.test_two_begins 4 4 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.test_two_ends 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogErrorTests.test_error_msg 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogErrorTests.test_error_no_msg 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogErrorTests.test_no_error_if_error_not_called 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.setUp 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.test_empty 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.test_simple 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.test_compressed1 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.test_compressed2 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.test_compressed3 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.test_compressed4 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.test_no_common_prefix_for_markers 6 6 0 0 0 0.00%
cogapp/test_cogapp.py TestCaseWithTempDir.new_cog 3 3 0 0 0 0.00%
cogapp/test_cogapp.py TestCaseWithTempDir.setUp 5 5 0 0 0 0.00%
cogapp/test_cogapp.py TestCaseWithTempDir.tearDown 2 2 0 0 0 0.00%
cogapp/test_cogapp.py TestCaseWithTempDir.assertFilesSame 5 5 0 0 0 0.00%
cogapp/test_cogapp.py TestCaseWithTempDir.assertFileContent 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.test_argument_failure 7 7 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.test_no_dash_o_and_at_file 3 3 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.test_no_dash_o_and_amp_file 3 3 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.test_dash_v 3 3 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.produces_help 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.test_dash_h 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.test_dash_o_and_dash_r 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.test_dash_z 7 7 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.test_bad_dash_d 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.test_bad_markers 4 4 0 0 0 0.00%
cogapp/test_cogapp.py TestMain.setUp 4 4 0 0 0 0.00%
cogapp/test_cogapp.py TestMain.tearDown 4 4 0 0 0 0.00%
cogapp/test_cogapp.py TestMain.test_main_function 5 5 0 0 0 0.00%
cogapp/test_cogapp.py TestMain.test_error_report 1 1 0 0 0 0.00%
cogapp/test_cogapp.py TestMain.test_error_report_with_prologue 1 1 0 0 0 0.00%
cogapp/test_cogapp.py TestMain.check_error_report 6 6 0 0 0 0.00%
cogapp/test_cogapp.py TestMain.test_error_in_prologue 6 6 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_simple 6 6 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_print_output 6 6 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_wildcards 8 8 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_output_file 4 4 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_at_file 7 7 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_nested_at_file 7 7 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_at_file_with_args 5 5 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_at_file_with_bad_arg_combo 4 4 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_at_file_with_tricky_filenames 7 7 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_at_file_with_tricky_filenames.fix_backslashes 3 3 0 2 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_amp_file 5 5 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.run_with_verbosity 5 5 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_verbosity0 2 2 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_verbosity1 2 2 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.test_verbosity2 2 2 0 0 0 0.00%
cogapp/test_cogapp.py CogTestLineEndings.test_output_native_eol 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogTestLineEndings.test_output_lf_eol 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogTestLineEndings.test_replace_native_eol 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogTestLineEndings.test_replace_lf_eol 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogTestCharacterEncoding.test_simple 6 6 0 0 0 0.00%
cogapp/test_cogapp.py CogTestCharacterEncoding.test_file_encoding_option 6 6 0 0 0 0.00%
cogapp/test_cogapp.py TestCaseWithImports.setUp 2 2 0 0 0 0.00%
cogapp/test_cogapp.py TestCaseWithImports.tearDown 4 4 0 2 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.test_need_include_path 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.test_include_path 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.test_two_include_paths 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.test_two_include_paths2 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.test_useless_include_path 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.test_sys_path_is_unchanged 26 26 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.test_sub_directories 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_warn_if_no_cog_code 13 13 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_file_name_props 7 7 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_globals_dont_cross_files 7 7 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_remove_generated_output 10 10 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_msg_call 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_error_message_has_no_traceback 7 7 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_dash_d 19 19 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_output_to_stdout 9 9 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_read_from_stdin 11 11 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_read_from_stdin.restore_stdin 1 1 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_suffix_output_lines 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_empty_suffix 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_hellish_suffix 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_prologue 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_threads 13 13 0 6 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.test_threads.thread_main 4 4 2 0 0 0.00%
cogapp/test_cogapp.py CheckTests.run_check 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CheckTests.assert_made_files_unchanged 5 5 0 4 0 0.00%
cogapp/test_cogapp.py CheckTests.test_check_no_cog 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CheckTests.test_check_good 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CheckTests.test_check_bad 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CheckTests.test_check_mixed 7 7 0 2 0 0.00%
cogapp/test_cogapp.py CheckTests.test_check_with_good_checksum 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CheckTests.test_check_with_bad_checksum 5 5 0 0 0 0.00%
cogapp/test_cogapp.py WritabilityTests.setUp 5 5 0 0 0 0.00%
cogapp/test_cogapp.py WritabilityTests.tearDown 2 2 0 0 0 0.00%
cogapp/test_cogapp.py WritabilityTests.test_readonly_no_command 3 3 0 0 0 0.00%
cogapp/test_cogapp.py WritabilityTests.test_readonly_with_command 3 3 0 0 0 0.00%
cogapp/test_cogapp.py WritabilityTests.test_readonly_with_command_with_no_slot 3 3 0 0 0 0.00%
cogapp/test_cogapp.py WritabilityTests.test_readonly_with_ineffectual_command 3 3 0 0 0 0.00%
cogapp/test_cogapp.py ChecksumTests.test_create_checksum_output 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ChecksumTests.test_check_checksum_output 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ChecksumTests.test_remove_checksum_output 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ChecksumTests.test_tampered_checksum_output 14 14 0 0 0 0.00%
cogapp/test_cogapp.py ChecksumTests.test_argv_isnt_modified 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CustomMarkerTests.test_customer_markers 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CustomMarkerTests.test_truly_wacky_markers 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CustomMarkerTests.test_change_just_one_marker 4 4 0 0 0 0.00%
cogapp/test_cogapp.py BlakeTests.test_delete_code 4 4 0 0 0 0.00%
cogapp/test_cogapp.py BlakeTests.test_delete_code_with_dash_r_fails 4 4 0 0 0 0.00%
cogapp/test_cogapp.py BlakeTests.test_setting_globals 7 7 0 0 0 0.00%
cogapp/test_cogapp.py ErrorCallTests.test_error_call_has_no_traceback 5 5 0 0 0 0.00%
cogapp/test_cogapp.py ErrorCallTests.test_real_error_has_traceback 7 7 0 0 0 0.00%
cogapp/test_cogapp.py (no function) 185 2 0 2 1 98.40%
cogapp/test_makefiles.py SimpleTests.setUp 3 3 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.tearDown 1 1 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.exists 1 1 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.check_files_exist 4 4 0 4 0 0.00%
cogapp/test_makefiles.py SimpleTests.check_files_dont_exist 2 2 0 2 0 0.00%
cogapp/test_makefiles.py SimpleTests.test_one_file 11 11 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.test_many_files 6 6 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.test_overlapping 12 12 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.test_contents 6 6 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.test_dedent 5 5 0 0 0 0.00%
cogapp/test_makefiles.py (no function) 17 0 0 0 0 100.00%
cogapp/test_whiteutils.py WhitePrefixTests.test_single_line 7 7 0 0 0 0.00%
cogapp/test_whiteutils.py WhitePrefixTests.test_multi_line 3 3 0 0 0 0.00%
cogapp/test_whiteutils.py WhitePrefixTests.test_blank_lines_are_ignored 4 4 0 0 0 0.00%
cogapp/test_whiteutils.py WhitePrefixTests.test_tab_characters 1 1 0 0 0 0.00%
cogapp/test_whiteutils.py WhitePrefixTests.test_decreasing_lengths 2 2 0 0 0 0.00%
cogapp/test_whiteutils.py ReindentBlockTests.test_non_term_line 10 10 0 0 0 0.00%
cogapp/test_whiteutils.py ReindentBlockTests.test_single_line 10 10 0 0 0 0.00%
cogapp/test_whiteutils.py ReindentBlockTests.test_real_block 1 1 0 0 0 0.00%
cogapp/test_whiteutils.py CommonPrefixTests.test_degenerate_cases 4 4 0 0 0 0.00%
cogapp/test_whiteutils.py CommonPrefixTests.test_no_common_prefix 3 3 0 0 0 0.00%
cogapp/test_whiteutils.py CommonPrefixTests.test_usual_cases 3 3 0 0 0 0.00%
cogapp/test_whiteutils.py CommonPrefixTests.test_blank_line 1 1 0 0 0 0.00%
cogapp/test_whiteutils.py CommonPrefixTests.test_decreasing_lengths 1 1 0 0 0 0.00%
cogapp/test_whiteutils.py (no function) 18 0 0 0 0 100.00%
cogapp/utils.py Redirectable.__init__ 2 0 0 0 0 100.00%
cogapp/utils.py Redirectable.set_output 4 1 0 4 2 62.50%
cogapp/utils.py Redirectable.prout 1 1 0 0 0 0.00%
cogapp/utils.py Redirectable.prerr 1 1 0 0 0 0.00%
cogapp/utils.py NumberedFileReader.__init__ 2 0 0 0 0 100.00%
cogapp/utils.py NumberedFileReader.readline 4 0 0 2 0 100.00%
cogapp/utils.py NumberedFileReader.linenumber 1 0 0 0 0 100.00%
cogapp/utils.py change_dir 5 5 0 0 0 0.00%
cogapp/utils.py (no function) 17 0 0 0 0 100.00%
cogapp/whiteutils.py white_prefix 13 3 0 10 2 78.26%
cogapp/whiteutils.py reindent_block 14 1 0 10 1 91.67%
cogapp/whiteutils.py common_prefix 13 1 0 12 1 92.00%
cogapp/whiteutils.py (no function) 4 0 0 0 0 100.00%
Total   1580 961 3 268 34 38.58%

No items found using the specified filter.