Branch Coverage

blib/lib/App/GHGen/Detector.pm
Criterion Covered Total %
branch 95 164 57.9


line true false branch
44 7 63 if $score > 0
50 1 6 unless @detections
51 1 5 wantarray ? :
103 1 1 $type ? :
112 1 6 if path("cpanfile")->exists
113 0 7 if path("dist.ini")->exists
114 0 7 if path("Makefile.PL")->exists
115 0 7 if path("Build.PL")->exists
118 0 7 if path("META.json")->exists
119 0 7 if path("META.yml")->exists
122 1 6 if path("lib")->exists and path("lib")->is_dir
123 0 7 if path("t")->exists and path("t")->is_dir
126 1 6 if (path("lib")->exists)
128 0 1 if @pm_files > 0
132 0 7 if (path("t")->exists)
134 0 0 if @t_files > 0
144 2 5 if path("package.json")->exists
145 0 7 if path("package-lock.json")->exists
146 0 7 if path("yarn.lock")->exists
147 0 7 if path("pnpm-lock.yaml")->exists
150 0 7 if path("node_modules")->exists and path("node_modules")->is_dir
151 0 7 if path("tsconfig.json")->exists
152 0 7 if path(".npmrc")->exists
155 0 7 if path("src")->exists and path("src")->is_dir
164 1 6 if path("requirements.txt")->exists
165 1 6 if path("setup.py")->exists
166 0 7 if path("pyproject.toml")->exists
167 0 7 if path("Pipfile")->exists
168 0 7 if path("poetry.lock")->exists
171 0 7 if path("setup.cfg")->exists
172 0 7 if path("tox.ini")->exists
173 0 7 if path(".python-version")->exists
176 0 7 if path("venv")->exists or path(".venv")->exists
180 1 6 if @py_files > 0
189 1 6 if path("Cargo.toml")->exists
190 0 7 if path("Cargo.lock")->exists
193 0 7 if path("src/main.rs")->exists
194 0 7 if path("src/lib.rs")->exists
195 0 7 if path("rust-toolchain.toml")->exists or path("rust-toolchain")->exists
198 0 7 if path("target")->exists and path("target")->is_dir
207 1 6 if path("go.mod")->exists
208 0 7 if path("go.sum")->exists
211 0 7 if path("main.go")->exists
215 0 7 if @go_files > 0
216 0 7 if @go_files > 3
225 0 7 if path("Gemfile")->exists
226 0 7 if path("Gemfile.lock")->exists
229 0 7 if path("Rakefile")->exists
230 0 7 if path(".ruby-version")->exists
231 0 7 if path("config.ru")->exists
235 0 7 if @rb_files > 0
244 1 6 if path("Dockerfile")->exists
245 0 7 if path("docker-compose.yml")->exists
246 0 7 if path("docker-compose.yaml")->exists
249 0 7 if path(".dockerignore")->exists
258 0 7 if path("composer.json")->exists
259 0 7 if path("composer.lock")->exists
262 0 7 if path("phpunit.xml")->exists
263 0 7 if path("phpunit.xml.dist")->exists
264 0 7 if path(".php-version")->exists
267 0 7 if path("src")->exists and path("src")->is_dir
268 0 7 if path("tests")->exists and path("tests")->is_dir
272 0 7 if @php_files > 0
281 0 7 if path("pom.xml")->exists
282 0 7 if path("build.gradle")->exists
283 0 7 if path("build.gradle.kts")->exists
286 0 7 if path("gradlew")->exists
287 0 7 if path("mvnw")->exists
288 0 7 if path("settings.gradle")->exists
289 0 7 if path("settings.gradle.kts")->exists
292 0 7 if path("src/main/java")->exists
293 0 7 if path("src/test/java")->exists
297 0 7 if @java_files > 0
306 0 7 if path("CMakeLists.txt")->exists
307 0 7 if path("Makefile")->exists
308 0 7 if path("configure.ac")->exists
309 0 7 if path("configure")->exists
312 0 7 if path("meson.build")->exists
313 0 7 if path(".clang-format")->exists
317 0 7 if @cpp_files > 0
318 0 7 if @cpp_files > 5
321 0 7 if path("include")->exists and path("include")->is_dir