< Summary - Repometa Coverage

Information
Class: asmDetector
Assembly: repometa
File(s): /home/runner/work/repometa/repometa/detect_asm.go
Line coverage
100%
Covered lines: 14
Uncovered lines: 0
Coverable lines: 14
Total lines: 21
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
detect0%00100%

File(s)

/home/runner/work/repometa/repometa/detect_asm.go

#LineLine coverage
 1package repometa
 2
 3import "fmt"
 4
 5type asmDetector struct{}
 6
 847func (asmDetector) detect(dv dirVisit, cfg options) []finding {
 848  _ = cfg // detector inspects only directory entries; cfg unused.
 849  n := countByExt(dv.files, ".s", ".S", ".asm")
 8310  if n == 0 {
 8311    return nil
 8312  }
 113  return []finding{{
 114    Kind:       KindAsmSource,
 115    Confidence: 0.6,
 116    Evidence: []Evidence{{
 117      Path:   dv.rel,
 118      Reason: fmt.Sprintf("directory contains %d assembly source file(s) (.s/.S/.asm)", n),
 119    }},
 120  }}
 21}

Methods/Properties

detect