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 ? :
107 1 1 $type ? :
116 1 6 if path("cpanfile")->exists
117 0 7 if path("dist.ini")->exists
118 0 7 if path("Makefile.PL")->exists
119 0 7 if path("Build.PL")->exists
122 0 7 if path("META.json")->exists
123 0 7 if path("META.yml")->exists
126 1 6 if path("lib")->exists and path("lib")->is_dir
127 0 7 if path("t")->exists and path("t")->is_dir
130 1 6 if (path("lib")->exists)
132 0 1 if @pm_files > 0
136 0 7 if (path("t")->exists)
138 0 0 if @t_files > 0
148 2 5 if path("package.json")->exists
149 0 7 if path("package-lock.json")->exists
150 0 7 if path("yarn.lock")->exists
151 0 7 if path("pnpm-lock.yaml")->exists
154 0 7 if path("node_modules")->exists and path("node_modules")->is_dir
155 0 7 if path("tsconfig.json")->exists
156 0 7 if path(".npmrc")->exists
159 0 7 if path("src")->exists and path("src")->is_dir
168 1 6 if path("requirements.txt")->exists
169 1 6 if path("setup.py")->exists
170 0 7 if path("pyproject.toml")->exists
171 0 7 if path("Pipfile")->exists
172 0 7 if path("poetry.lock")->exists
175 0 7 if path("setup.cfg")->exists
176 0 7 if path("tox.ini")->exists
177 0 7 if path(".python-version")->exists
180 0 7 if path("venv")->exists or path(".venv")->exists
184 1 6 if @py_files > 0
193 1 6 if path("Cargo.toml")->exists
194 0 7 if path("Cargo.lock")->exists
197 0 7 if path("src/main.rs")->exists
198 0 7 if path("src/lib.rs")->exists
199 0 7 if path("rust-toolchain.toml")->exists or path("rust-toolchain")->exists
202 0 7 if path("target")->exists and path("target")->is_dir
211 1 6 if path("go.mod")->exists
212 0 7 if path("go.sum")->exists
215 0 7 if path("main.go")->exists
219 0 7 if @go_files > 0
220 0 7 if @go_files > 3
229 0 7 if path("Gemfile")->exists
230 0 7 if path("Gemfile.lock")->exists
233 0 7 if path("Rakefile")->exists
234 0 7 if path(".ruby-version")->exists
235 0 7 if path("config.ru")->exists
239 0 7 if @rb_files > 0
248 1 6 if path("Dockerfile")->exists
249 0 7 if path("docker-compose.yml")->exists
250 0 7 if path("docker-compose.yaml")->exists
253 0 7 if path(".dockerignore")->exists
262 0 7 if path("composer.json")->exists
263 0 7 if path("composer.lock")->exists
266 0 7 if path("phpunit.xml")->exists
267 0 7 if path("phpunit.xml.dist")->exists
268 0 7 if path(".php-version")->exists
271 0 7 if path("src")->exists and path("src")->is_dir
272 0 7 if path("tests")->exists and path("tests")->is_dir
276 0 7 if @php_files > 0
285 0 7 if path("pom.xml")->exists
286 0 7 if path("build.gradle")->exists
287 0 7 if path("build.gradle.kts")->exists
290 0 7 if path("gradlew")->exists
291 0 7 if path("mvnw")->exists
292 0 7 if path("settings.gradle")->exists
293 0 7 if path("settings.gradle.kts")->exists
296 0 7 if path("src/main/java")->exists
297 0 7 if path("src/test/java")->exists
301 0 7 if @java_files > 0
310 0 7 if path("CMakeLists.txt")->exists
311 0 7 if path("Makefile")->exists
312 0 7 if path("configure.ac")->exists
313 0 7 if path("configure")->exists
316 0 7 if path("meson.build")->exists
317 0 7 if path(".clang-format")->exists
321 0 7 if @cpp_files > 0
322 0 7 if @cpp_files > 5
325 0 7 if path("include")->exists and path("include")->is_dir