Analyzer::Haskell::Scotty
Inherits Analyzer < FileHelper < Reference < Object
Constants
hspec-wai test clients call get "/x" shouldRespondWith ..., which
reads exactly like a Scotty route; a file that imports it is a test
even when it lives outside a test directory.
test/, tests/ and spec/ trees. Case-sensitive on purpose: a
production src/Test/... module namespace must stay in.
hspec-discover/tasty FooSpec.hs / FooTest.hs files and foo_spec. /
foo_test. files. The name alone is not enough: OpenApiSpec.hs,
SpeedTest.hs and Handlers/Tests.hs are production modules, so the
file must also import a Haskell test library.
Crystal recompiles an interpolated regex literal on every evaluation (a full PCRE2 JIT compile). The probed token set is fixed, so precompile the matchers once at load time.
Class methods
Instance methods
Instance-side view of the same declaration. The per-file rescues live on
this base class, which has no way to name the analyzer that is running
inside them, so a skipped file could not be attributed to a tech.
Deriving it from analyzer_for keeps the name written exactly once.