Cog coverage: 38.64%

coverage.py v7.5.0a1.dev1, created at 2024-04-15 15:50 -0400

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.parseMarker 1 0 0 0 0 100.00%
cogapp/cogapp.py CogGenerator.parseLine 1 0 0 0 0 100.00%
cogapp/cogapp.py CogGenerator.getCode 5 0 0 6 0 100.00%
cogapp/cogapp.py CogGenerator.evaluate 33 4 0 16 4 83.67%
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.addToIncludePath 2 2 0 0 0 0.00%
cogapp/cogapp.py CogOptions.parseArgs 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._fixEndOutputPatterns 3 0 0 0 0 100.00%
cogapp/cogapp.py Cog.showWarning 1 1 0 0 0 0.00%
cogapp/cogapp.py Cog.isBeginSpecLine 1 0 0 0 0 100.00%
cogapp/cogapp.py Cog.isEndSpecLine 1 0 0 0 0 100.00%
cogapp/cogapp.py Cog.isEndOutputLine 1 0 0 0 0 100.00%
cogapp/cogapp.py Cog.createCogModule 2 0 0 0 0 100.00%
cogapp/cogapp.py Cog.openOutputFile 9 9 0 4 0 0.00%
cogapp/cogapp.py Cog.openInputFile 3 3 0 2 0 0.00%
cogapp/cogapp.py Cog.processFile 104 23 0 60 21 70.73%
cogapp/cogapp.py Cog.suffixLines 4 2 0 2 1 50.00%
cogapp/cogapp.py Cog.processString 4 0 0 0 0 100.00%
cogapp/cogapp.py Cog.replaceFile 11 11 0 6 0 0.00%
cogapp/cogapp.py Cog.saveIncludePath 2 2 0 0 0 0.00%
cogapp/cogapp.py Cog.restoreIncludePath 3 3 0 0 0 0.00%
cogapp/cogapp.py Cog.addToIncludePath 2 2 0 0 0 0.00%
cogapp/cogapp.py Cog.processOneFile 31 31 0 16 0 0.00%
cogapp/cogapp.py Cog.processWildcards 5 5 0 4 0 0.00%
cogapp/cogapp.py Cog.processFileList 11 11 0 4 0 0.00%
cogapp/cogapp.py Cog.processArguments 16 16 0 8 0 0.00%
cogapp/cogapp.py Cog.callableMain 16 16 0 10 0 0.00%
cogapp/cogapp.py Cog.main 20 20 0 8 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 makeFiles 11 11 0 8 0 0.00%
cogapp/makefiles.py removeFiles 7 7 0 6 0 0.00%
cogapp/makefiles.py (no function) 4 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testNoCog 3 0 0 2 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testSimple 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testEmptyCog 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testMultipleCogs 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testTrimBlankLines 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testTrimEmptyBlankLines 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testTrimBlankLinesWithLastPartial 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testCogOutDedent 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.test22EndOfLine 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testIndentedCode 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testPrefixedCode 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testPrefixedIndentedCode 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testBogusPrefixMatch 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testNoFinalNewline 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testNoOutputAtAll 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testPurelyBlankLine 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testEmptyOutl 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testFirstLineNum 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testCompactOneLineCode 4 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testInsideOutCompact 3 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testSharingGlobals 4 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testAssertInCogCode 4 0 0 0 0 100.00%
cogapp/test_cogapp.py CogTestsInMemory.testCogPrevious 4 0 0 0 0 100.00%
cogapp/test_cogapp.py CogOptionsTests.testEquality 7 7 0 0 0 0.00%
cogapp/test_cogapp.py CogOptionsTests.testCloning 9 9 0 0 0 0.00%
cogapp/test_cogapp.py CogOptionsTests.testCombiningFlags 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogOptionsTests.testMarkers 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogOptionsTests.testMarkersSwitch 5 5 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.isBad 3 3 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.testBeginNoEnd 2 2 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.testNoEoo 4 4 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.testStartWithEnd 4 4 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.testStartWithEoo 4 4 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.testNoEnd 4 4 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.testTwoBegins 4 4 0 0 0 0.00%
cogapp/test_cogapp.py FileStructureTests.testTwoEnds 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogErrorTests.testErrorMsg 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogErrorTests.testErrorNoMsg 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogErrorTests.testNoErrorIfErrorNotCalled 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.testEmpty 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.testSimple 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.testCompressed1 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.testCompressed2 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.testCompressed3 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.testCompressed4 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogGeneratorGetCodeTests.testNoCommonPrefixForMarkers 6 6 0 0 0 0.00%
cogapp/test_cogapp.py TestCaseWithTempDir.newCog 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.testArgumentFailure 7 7 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.testNoDashOAndAtFile 3 3 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.testNoDashOAndAmpFile 3 3 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.testDashV 3 3 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.producesHelp 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.testDashH 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.testDashOAndDashR 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.testDashZ 7 7 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.testBadDashD 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ArgumentHandlingTests.testBadMarkers 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.testSimple 6 6 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.testPrintOutput 6 6 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.testWildcards 8 8 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.testOutputFile 4 4 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.testAtFile 7 7 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.testNestedAtFile 7 7 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.testAtFileWithArgs 5 5 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.testAtFileWithBadArgCombo 4 4 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.testAtFileWithTrickyFilenames 7 7 0 0 0 0.00%
cogapp/test_cogapp.py TestFileHandling.testAtFileWithTrickyFilenames.fix_backslashes 3 3 0 2 0 0.00%
cogapp/test_cogapp.py TestFileHandling.testAmpFile 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.testOutputNativeEol 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogTestLineEndings.testOutputLfEol 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogTestLineEndings.testReplaceNativeEol 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogTestLineEndings.testReplaceLfEol 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogTestCharacterEncoding.testSimple 6 6 0 0 0 0.00%
cogapp/test_cogapp.py CogTestCharacterEncoding.testFileEncodingOption 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 4 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.testNeedIncludePath 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.testIncludePath 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.testTwoIncludePaths 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.testTwoIncludePaths2 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.testUselessIncludePath 3 3 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.testSysPathIsUnchanged 26 26 0 0 0 0.00%
cogapp/test_cogapp.py CogIncludeTests.testSubDirectories 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testWarnIfNoCogCode 13 13 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testFileNameProps 7 7 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testGlobalsDontCrossFiles 7 7 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testRemoveGeneratedOutput 10 10 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testMsgCall 5 5 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testErrorMessageHasNoTraceback 7 7 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testDashD 19 19 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testOutputToStdout 9 9 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testReadFromStdin 11 11 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testReadFromStdin.restore_stdin 1 1 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testSuffixOutputLines 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testEmptySuffix 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testHellishSuffix 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testPrologue 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testThreads 13 13 0 8 0 0.00%
cogapp/test_cogapp.py CogTestsInFiles.testThreads.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.testReadonlyNoCommand 3 3 0 0 0 0.00%
cogapp/test_cogapp.py WritabilityTests.testReadonlyWithCommand 3 3 0 0 0 0.00%
cogapp/test_cogapp.py WritabilityTests.testReadonlyWithCommandWithNoSlot 3 3 0 0 0 0.00%
cogapp/test_cogapp.py WritabilityTests.testReadonlyWithIneffectualCommand 3 3 0 0 0 0.00%
cogapp/test_cogapp.py ChecksumTests.testCreateChecksumOutput 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ChecksumTests.testCheckChecksumOutput 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ChecksumTests.testRemoveChecksumOutput 4 4 0 0 0 0.00%
cogapp/test_cogapp.py ChecksumTests.testTamperedChecksumOutput 14 14 0 0 0 0.00%
cogapp/test_cogapp.py ChecksumTests.testArgvIsntModified 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CustomMarkerTests.testCustomerMarkers 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CustomMarkerTests.testTrulyWackyMarkers 4 4 0 0 0 0.00%
cogapp/test_cogapp.py CustomMarkerTests.testChangeJustOneMarker 4 4 0 0 0 0.00%
cogapp/test_cogapp.py BlakeTests.testDeleteCode 4 4 0 0 0 0.00%
cogapp/test_cogapp.py BlakeTests.testDeleteCodeWithDashRFails 4 4 0 0 0 0.00%
cogapp/test_cogapp.py BlakeTests.testSettingGlobals 7 7 0 0 0 0.00%
cogapp/test_cogapp.py ErrorCallTests.testErrorCallHasNoTraceback 5 5 0 0 0 0.00%
cogapp/test_cogapp.py ErrorCallTests.testRealErrorHasTraceback 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.checkFilesExist 4 4 0 4 0 0.00%
cogapp/test_makefiles.py SimpleTests.checkFilesDontExist 2 2 0 2 0 0.00%
cogapp/test_makefiles.py SimpleTests.testOneFile 11 11 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.testManyFiles 6 6 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.testOverlapping 12 12 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.testContents 6 6 0 0 0 0.00%
cogapp/test_makefiles.py SimpleTests.testDedent 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.testSingleLine 7 7 0 0 0 0.00%
cogapp/test_whiteutils.py WhitePrefixTests.testMultiLine 3 3 0 0 0 0.00%
cogapp/test_whiteutils.py WhitePrefixTests.testBlankLinesAreIgnored 4 4 0 0 0 0.00%
cogapp/test_whiteutils.py WhitePrefixTests.testTabCharacters 1 1 0 0 0 0.00%
cogapp/test_whiteutils.py WhitePrefixTests.testDecreasingLengths 2 2 0 0 0 0.00%
cogapp/test_whiteutils.py ReindentBlockTests.testNonTermLine 10 10 0 0 0 0.00%
cogapp/test_whiteutils.py ReindentBlockTests.testSingleLine 10 10 0 0 0 0.00%
cogapp/test_whiteutils.py ReindentBlockTests.testRealBlock 1 1 0 0 0 0.00%
cogapp/test_whiteutils.py CommonPrefixTests.testDegenerateCases 4 4 0 0 0 0.00%
cogapp/test_whiteutils.py CommonPrefixTests.testNoCommonPrefix 3 3 0 0 0 0.00%
cogapp/test_whiteutils.py CommonPrefixTests.testUsualCases 3 3 0 0 0 0.00%
cogapp/test_whiteutils.py CommonPrefixTests.testBlankLine 1 1 0 0 0 0.00%
cogapp/test_whiteutils.py CommonPrefixTests.testDecreasingLengths 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.setOutput 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 whitePrefix 12 3 0 12 2 79.17%
cogapp/whiteutils.py reindentBlock 14 1 0 10 1 91.67%
cogapp/whiteutils.py commonPrefix 13 1 0 12 1 92.00%
cogapp/whiteutils.py (no function) 4 0 0 0 0 100.00%
Total   1579 961 3 292 35 38.64%

No items found using the specified filter.