pi-usereq 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.g.conf +20 -0
- package/.github/workflows/release-npm.yml +131 -0
- package/.gitignore +270 -0
- package/CHANGELOG.md +221 -0
- package/LICENSE +674 -0
- package/README.md +260 -0
- package/TODO.md +20 -0
- package/docs/pi.dev/agent-document-manifest.json +6399 -0
- package/docs/pi.dev/coding-agent-docs/compaction.md +394 -0
- package/docs/pi.dev/coding-agent-docs/custom-provider.md +596 -0
- package/docs/pi.dev/coding-agent-docs/development.md +71 -0
- package/docs/pi.dev/coding-agent-docs/extensions.md +2262 -0
- package/docs/pi.dev/coding-agent-docs/images/doom-extension.png +0 -0
- package/docs/pi.dev/coding-agent-docs/images/exy.png +0 -0
- package/docs/pi.dev/coding-agent-docs/images/interactive-mode.png +0 -0
- package/docs/pi.dev/coding-agent-docs/images/tree-view.png +0 -0
- package/docs/pi.dev/coding-agent-docs/json.md +82 -0
- package/docs/pi.dev/coding-agent-docs/keybindings.md +175 -0
- package/docs/pi.dev/coding-agent-docs/models.md +392 -0
- package/docs/pi.dev/coding-agent-docs/packages.md +218 -0
- package/docs/pi.dev/coding-agent-docs/prompt-templates.md +67 -0
- package/docs/pi.dev/coding-agent-docs/providers.md +195 -0
- package/docs/pi.dev/coding-agent-docs/rpc.md +1377 -0
- package/docs/pi.dev/coding-agent-docs/sdk.md +1124 -0
- package/docs/pi.dev/coding-agent-docs/session.md +412 -0
- package/docs/pi.dev/coding-agent-docs/settings.md +247 -0
- package/docs/pi.dev/coding-agent-docs/shell-aliases.md +13 -0
- package/docs/pi.dev/coding-agent-docs/skills.md +232 -0
- package/docs/pi.dev/coding-agent-docs/terminal-setup.md +106 -0
- package/docs/pi.dev/coding-agent-docs/termux.md +127 -0
- package/docs/pi.dev/coding-agent-docs/themes.md +295 -0
- package/docs/pi.dev/coding-agent-docs/tmux.md +61 -0
- package/docs/pi.dev/coding-agent-docs/tree.md +231 -0
- package/docs/pi.dev/coding-agent-docs/tui.md +887 -0
- package/docs/pi.dev/coding-agent-docs/windows.md +17 -0
- package/docs/pi.dev/mom-docs/artifacts-server.md +475 -0
- package/docs/pi.dev/mom-docs/events.md +307 -0
- package/docs/pi.dev/mom-docs/new.md +970 -0
- package/docs/pi.dev/mom-docs/sandbox.md +153 -0
- package/docs/pi.dev/mom-docs/slack-bot-minimal-guide.md +399 -0
- package/docs/pi.dev/mom-docs/v86.md +319 -0
- package/docs/pi.dev/pods-docs/gml-4.5.md +189 -0
- package/docs/pi.dev/pods-docs/gpt-oss.md +233 -0
- package/docs/pi.dev/pods-docs/implementation-plan.md +183 -0
- package/docs/pi.dev/pods-docs/kimi-k2.md +197 -0
- package/docs/pi.dev/pods-docs/models.md +116 -0
- package/docs/pi.dev/pods-docs/plan.md +166 -0
- package/docs/pi.dev/pods-docs/qwen3-coder.md +132 -0
- package/images/flowchart-bw.png +0 -0
- package/images/flowchart-bw.svg +102 -0
- package/images/flowchart.md +100 -0
- package/images/flowchart.png +0 -0
- package/images/flowchart.svg +3 -0
- package/package.json +46 -0
- package/req/docs/REFERENCES.md +4554 -0
- package/req/docs/REQUIREMENTS.md +475 -0
- package/req/docs/WORKFLOW.md +1059 -0
- package/scripts/debug-extension.ts +497 -0
- package/scripts/lib/extension-debug-harness.ts +450 -0
- package/scripts/lib/recording-extension-api.ts +786 -0
- package/scripts/lib/sdk-smoke.ts +503 -0
- package/scripts/pi-usereq-debug.sh +330 -0
- package/scripts/tool-args-to-params.ts +208 -0
- package/src/cli.ts +349 -0
- package/src/core/agent-tool-json.ts +621 -0
- package/src/core/compress-files.ts +72 -0
- package/src/core/compress-payload.ts +648 -0
- package/src/core/compress.ts +464 -0
- package/src/core/config.ts +272 -0
- package/src/core/doxygen-parser.ts +318 -0
- package/src/core/errors.ts +31 -0
- package/src/core/extension-status.ts +660 -0
- package/src/core/find-constructs.ts +319 -0
- package/src/core/find-payload.ts +915 -0
- package/src/core/generate-markdown.ts +120 -0
- package/src/core/path-context.ts +196 -0
- package/src/core/pi-notify.ts +430 -0
- package/src/core/pi-usereq-tools.ts +140 -0
- package/src/core/prompts.ts +184 -0
- package/src/core/reference-payload.ts +818 -0
- package/src/core/resources.ts +63 -0
- package/src/core/runtime-project-paths.ts +99 -0
- package/src/core/settings-menu.ts +233 -0
- package/src/core/source-analyzer.ts +1721 -0
- package/src/core/static-check.ts +674 -0
- package/src/core/token-counter.ts +729 -0
- package/src/core/tool-runner.ts +717 -0
- package/src/core/utils.ts +185 -0
- package/src/index.ts +2209 -0
- package/src/resources/guidelines/Google_C++_Style_Guide.md +3711 -0
- package/src/resources/guidelines/Google_Python_Style_Guide.md +3709 -0
- package/src/resources/prompts/analyze.md +130 -0
- package/src/resources/prompts/change.md +227 -0
- package/src/resources/prompts/check.md +139 -0
- package/src/resources/prompts/cover.md +219 -0
- package/src/resources/prompts/create.md +104 -0
- package/src/resources/prompts/fix.md +221 -0
- package/src/resources/prompts/flowchart.md +220 -0
- package/src/resources/prompts/implement.md +163 -0
- package/src/resources/prompts/new.md +226 -0
- package/src/resources/prompts/readme.md +182 -0
- package/src/resources/prompts/recreate.md +213 -0
- package/src/resources/prompts/refactor.md +213 -0
- package/src/resources/prompts/references.md +100 -0
- package/src/resources/prompts/renumber.md +119 -0
- package/src/resources/prompts/workflow.md +202 -0
- package/src/resources/prompts/write.md +99 -0
- package/src/resources/sounds/Machine-alert-beep-sound-effect.mp3 +0 -0
- package/src/resources/sounds/Soft-high-tech-notification-sound-effect.mp3 +0 -0
- package/src/resources/templates/Document_Source_Code_in_Doxygen_Style.md +130 -0
- package/src/resources/templates/HDT_Test_Authoring_Guide.md +318 -0
- package/src/resources/templates/Requirements_Template.md +78 -0
- package/tests/attended-results-scenarios.ts +758 -0
- package/tests/attended-results.test.ts +39 -0
- package/tests/cli-command-option-parity.test.ts +815 -0
- package/tests/debug-extension-harness.test.ts +463 -0
- package/tests/extension-registration.test.ts +2006 -0
- package/tests/fixtures/fixture_c.c +361 -0
- package/tests/fixtures/fixture_cpp.cpp +407 -0
- package/tests/fixtures/fixture_csharp.cs +411 -0
- package/tests/fixtures/fixture_elixir.ex +409 -0
- package/tests/fixtures/fixture_go.go +341 -0
- package/tests/fixtures/fixture_haskell.hs +250 -0
- package/tests/fixtures/fixture_java.java +430 -0
- package/tests/fixtures/fixture_javascript.js +383 -0
- package/tests/fixtures/fixture_kotlin.kt +451 -0
- package/tests/fixtures/fixture_lua.lua +276 -0
- package/tests/fixtures/fixture_perl.pl +310 -0
- package/tests/fixtures/fixture_php.php +433 -0
- package/tests/fixtures/fixture_python.py +502 -0
- package/tests/fixtures/fixture_ruby.rb +345 -0
- package/tests/fixtures/fixture_rust.rs +380 -0
- package/tests/fixtures/fixture_scala.scala +398 -0
- package/tests/fixtures/fixture_shell.sh +276 -0
- package/tests/fixtures/fixture_swift.swift +397 -0
- package/tests/fixtures/fixture_typescript.ts +434 -0
- package/tests/fixtures/fixture_zig.zig +295 -0
- package/tests/fixtures_attended_results/project/compress-line-numbers.json +5 -0
- package/tests/fixtures_attended_results/project/compress.json +5 -0
- package/tests/fixtures_attended_results/project/enable-static-check-invalid-command.json +5 -0
- package/tests/fixtures_attended_results/project/enable-static-check-valid.json +5 -0
- package/tests/fixtures_attended_results/project/files-static-check.json +5 -0
- package/tests/fixtures_attended_results/project/find-line-numbers.json +5 -0
- package/tests/fixtures_attended_results/project/find.json +5 -0
- package/tests/fixtures_attended_results/project/get-base-path.json +5 -0
- package/tests/fixtures_attended_results/project/git-check-clean.json +5 -0
- package/tests/fixtures_attended_results/project/git-check-dirty.json +5 -0
- package/tests/fixtures_attended_results/project/git-path.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-create-invalid.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-create-valid.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-delete-nonexistent.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-delete-valid.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-name.json +5 -0
- package/tests/fixtures_attended_results/project/references.json +5 -0
- package/tests/fixtures_attended_results/project/static-check.json +5 -0
- package/tests/fixtures_attended_results/project/tokens.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_zig.zig.json +5 -0
- package/tests/helpers.ts +204 -0
- package/tests/oracle-project.test.ts +63 -0
- package/tests/oracle-standalone.test.ts +48 -0
- package/tests/prompt-rendering.test.ts +66 -0
- package/tests/release-workflow.test.ts +133 -0
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
// cppcheck-suppress-begin unusedStructMember
|
|
2
|
+
// cppcheck-suppress-begin passedByValue
|
|
3
|
+
/**
|
|
4
|
+
* @file fixture_cpp.cpp
|
|
5
|
+
* @brief Comprehensive C++ test fixture for parser stress-testing.
|
|
6
|
+
* @details Covers templates, SFINAE, constexpr, lambdas, concepts, CRTP,
|
|
7
|
+
* operator overloading, move semantics, nested namespaces, and
|
|
8
|
+
* modern C++20/23 constructs.
|
|
9
|
+
*/
|
|
10
|
+
// Single line comment
|
|
11
|
+
/* Multi-line
|
|
12
|
+
comment */
|
|
13
|
+
#include <concepts>
|
|
14
|
+
#include <functional>
|
|
15
|
+
#include <iostream>
|
|
16
|
+
#include <memory>
|
|
17
|
+
#include <optional>
|
|
18
|
+
#include <string>
|
|
19
|
+
#include <vector>
|
|
20
|
+
|
|
21
|
+
#define VERSION 2
|
|
22
|
+
|
|
23
|
+
/** @def LIKELY Branch prediction hint for hot paths. */
|
|
24
|
+
#define LIKELY(x) __builtin_expect(!!(x), 1)
|
|
25
|
+
|
|
26
|
+
/* ── Namespace ────────────────────────────────────────────────────────── */
|
|
27
|
+
|
|
28
|
+
namespace MyNS {
|
|
29
|
+
|
|
30
|
+
/* ── Concepts (C++20) ─────────────────────────────────────────────────── */
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @concept Printable
|
|
34
|
+
* @brief Constrains types that support stream insertion via operator<<.
|
|
35
|
+
*/
|
|
36
|
+
template <typename T>
|
|
37
|
+
concept Printable = requires(std::ostream &os, T val) {
|
|
38
|
+
{ os << val } -> std::same_as<std::ostream &>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @concept Numeric
|
|
43
|
+
* @brief Constrains types to integral or floating point.
|
|
44
|
+
*/
|
|
45
|
+
template <typename T>
|
|
46
|
+
concept Numeric = std::integral<T> || std::floating_point<T>;
|
|
47
|
+
|
|
48
|
+
/* ── Template class ───────────────────────────────────────────────────── */
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @class Container
|
|
52
|
+
* @brief Generic container with RAII semantics.
|
|
53
|
+
* @tparam T Element type; must satisfy Printable concept.
|
|
54
|
+
*/
|
|
55
|
+
template <Printable T> class Container {
|
|
56
|
+
public:
|
|
57
|
+
T value; /**< @brief Stored value of type T. */
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @brief Construct container with an initial value.
|
|
61
|
+
* @param v The value to store.
|
|
62
|
+
*/
|
|
63
|
+
explicit Container(T v) : value(std::move(v)) {}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @brief Copy constructor performs deep copy.
|
|
67
|
+
* @param other Source container to copy from.
|
|
68
|
+
*/
|
|
69
|
+
Container(const Container &other) = default;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @brief Move constructor transfers ownership.
|
|
73
|
+
* @param other Source container; left in valid but unspecified state.
|
|
74
|
+
*/
|
|
75
|
+
Container(Container &&other) noexcept = default;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @brief Copy assignment operator.
|
|
79
|
+
* @param other Source container.
|
|
80
|
+
* @return Reference to this container.
|
|
81
|
+
*/
|
|
82
|
+
Container &operator=(const Container &other) = default;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @brief Move assignment operator.
|
|
86
|
+
* @param other Source container to move from.
|
|
87
|
+
* @return Reference to this container.
|
|
88
|
+
*/
|
|
89
|
+
Container &operator=(Container &&other) noexcept = default;
|
|
90
|
+
|
|
91
|
+
/** @brief Destructor; default cleanup. */
|
|
92
|
+
~Container() = default;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @brief Stream insertion for this container.
|
|
96
|
+
* @param os Output stream.
|
|
97
|
+
* @param c Container to print.
|
|
98
|
+
* @return The output stream.
|
|
99
|
+
*/
|
|
100
|
+
friend std::ostream &operator<<(std::ostream &os, const Container &c) {
|
|
101
|
+
return os << c.value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @brief Equality comparison between containers.
|
|
106
|
+
* @param other Container to compare with.
|
|
107
|
+
* @return True if values are equal.
|
|
108
|
+
*/
|
|
109
|
+
bool operator==(const Container &other) const { return value == other.value; }
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/* ── Struct ───────────────────────────────────────────────────────────── */
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @struct Point
|
|
116
|
+
* @brief 2D coordinate with constexpr arithmetic support.
|
|
117
|
+
*/
|
|
118
|
+
struct Point {
|
|
119
|
+
double x; /**< @brief X coordinate. */
|
|
120
|
+
double y; /**< @brief Y coordinate. */
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @brief Compute Euclidean distance squared to another point.
|
|
124
|
+
* @param other Target point.
|
|
125
|
+
* @return Distance squared (avoids sqrt overhead).
|
|
126
|
+
*/
|
|
127
|
+
constexpr double dist_sq(const Point &other) const {
|
|
128
|
+
/* Squared differences avoid floating-point sqrt */
|
|
129
|
+
double dx = x - other.x;
|
|
130
|
+
double dy = y - other.y;
|
|
131
|
+
return dx * dx + dy * dy;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @brief Add two points component-wise.
|
|
136
|
+
* @param rhs Right-hand operand.
|
|
137
|
+
* @return New Point with summed coordinates.
|
|
138
|
+
*/
|
|
139
|
+
constexpr Point operator+(const Point &rhs) const {
|
|
140
|
+
return {x + rhs.x, y + rhs.y};
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
/* ── Enum class ───────────────────────────────────────────────────────── */
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @enum Direction
|
|
148
|
+
* @brief Cardinal movement directions with strong typing.
|
|
149
|
+
*/
|
|
150
|
+
enum class Direction {
|
|
151
|
+
Up, /**< @brief Move upward. */
|
|
152
|
+
Down, /**< @brief Move downward. */
|
|
153
|
+
Left, /**< @brief Move left. */
|
|
154
|
+
Right /**< @brief Move right. */
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
/* ── Type aliases ─────────────────────────────────────────────────────── */
|
|
158
|
+
|
|
159
|
+
/** @typedef StringVec Convenience alias for string vectors. */
|
|
160
|
+
using StringVec = std::vector<std::string>;
|
|
161
|
+
|
|
162
|
+
/** @typedef my_int_t Legacy alias for integer type. */
|
|
163
|
+
typedef int my_int_t;
|
|
164
|
+
|
|
165
|
+
/** @typedef Callback Function wrapper for void callbacks. */
|
|
166
|
+
using Callback = std::function<void(int)>;
|
|
167
|
+
|
|
168
|
+
/* ── CRTP pattern ─────────────────────────────────────────────────────── */
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @class Cloneable
|
|
172
|
+
* @brief CRTP base providing a polymorphic clone method.
|
|
173
|
+
* @tparam Derived The concrete class inheriting this base.
|
|
174
|
+
*/
|
|
175
|
+
template <typename Derived> class Cloneable {
|
|
176
|
+
public:
|
|
177
|
+
/**
|
|
178
|
+
* @brief Create a heap-allocated copy of the derived object.
|
|
179
|
+
* @return Unique pointer to the cloned instance.
|
|
180
|
+
*/
|
|
181
|
+
std::unique_ptr<Derived> clone() const {
|
|
182
|
+
/* static_cast down to Derived is safe under CRTP contract */
|
|
183
|
+
return std::make_unique<Derived>(static_cast<const Derived &>(*this));
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
/* ── Virtual inheritance ──────────────────────────────────────────────── */
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @class Base
|
|
191
|
+
* @brief Abstract base with a pure virtual method.
|
|
192
|
+
*/
|
|
193
|
+
class Base {
|
|
194
|
+
public:
|
|
195
|
+
/**
|
|
196
|
+
* @brief Identify the concrete type at runtime.
|
|
197
|
+
* @return A non-owning string literal naming the type.
|
|
198
|
+
*/
|
|
199
|
+
virtual const char *type_name() const = 0;
|
|
200
|
+
virtual ~Base() = default;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @class DerivedA
|
|
205
|
+
* @brief First concrete implementation of Base.
|
|
206
|
+
*/
|
|
207
|
+
class DerivedA : public virtual Base {
|
|
208
|
+
public:
|
|
209
|
+
const char *type_name() const override { return "DerivedA"; }
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @class DerivedB
|
|
214
|
+
* @brief Second concrete implementation for diamond inheritance testing.
|
|
215
|
+
*/
|
|
216
|
+
class DerivedB : public virtual Base {
|
|
217
|
+
public:
|
|
218
|
+
const char *type_name() const override { return "DerivedB"; }
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @class Diamond
|
|
223
|
+
* @brief Diamond inheritance: inherits from both DerivedA and DerivedB.
|
|
224
|
+
*/
|
|
225
|
+
class Diamond : public DerivedA, public DerivedB {
|
|
226
|
+
public:
|
|
227
|
+
const char *type_name() const override { return "Diamond"; }
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
/* ── Constexpr function ───────────────────────────────────────────────── */
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @brief Compute factorial at compile time.
|
|
234
|
+
* @param n Non-negative input.
|
|
235
|
+
* @return n! computed via recursive constexpr evaluation.
|
|
236
|
+
*/
|
|
237
|
+
constexpr unsigned long long constexpr_factorial(unsigned int n) {
|
|
238
|
+
/* Compile-time recursion terminates at n <= 1 */
|
|
239
|
+
return n <= 1 ? 1ULL : n * constexpr_factorial(n - 1);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* ── Function with structured binding return ──────────────────────────── */
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @brief Parse a key=value string into its components.
|
|
246
|
+
* @param input String in "key=value" format.
|
|
247
|
+
* @return Pair of key and value; empty strings if malformed.
|
|
248
|
+
*/
|
|
249
|
+
std::pair<std::string, std::string> parse_kv(const std::string &input) {
|
|
250
|
+
auto pos = input.find('=');
|
|
251
|
+
if (pos == std::string::npos) {
|
|
252
|
+
/* No delimiter found — return empty pair */
|
|
253
|
+
return {"", ""};
|
|
254
|
+
}
|
|
255
|
+
return {input.substr(0, pos), input.substr(pos + 1)};
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* ── Free functions ───────────────────────────────────────────────────── */
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @brief Greet a person by name on stdout.
|
|
262
|
+
* @param name The person's name to display.
|
|
263
|
+
*/
|
|
264
|
+
void greet(std::string name) { std::cout << "Hello, " << name << "\n"; }
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @brief Program entry point.
|
|
268
|
+
* @return 0 on success.
|
|
269
|
+
*/
|
|
270
|
+
int main() {
|
|
271
|
+
/* Structured binding from parse_kv */
|
|
272
|
+
auto [key, val] = parse_kv("lang=cpp");
|
|
273
|
+
greet(key);
|
|
274
|
+
return 0;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/* ── Lambda stored in variable ────────────────────────────────────────── */
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @brief Inline lambda for squaring values.
|
|
281
|
+
*
|
|
282
|
+
* Demonstrates constexpr lambda with auto parameter (C++20 generic lambda).
|
|
283
|
+
*/
|
|
284
|
+
constexpr auto square = [](auto x) { return x * x; };
|
|
285
|
+
|
|
286
|
+
/* ── Nested namespace (C++17) ─────────────────────────────────────────── */
|
|
287
|
+
|
|
288
|
+
namespace Inner::Detail {
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @brief Internal helper formatting integers to strings.
|
|
292
|
+
* @param v The integer to format.
|
|
293
|
+
* @return Formatted string representation.
|
|
294
|
+
*/
|
|
295
|
+
inline std::string format_int(int v) { return std::to_string(v); }
|
|
296
|
+
|
|
297
|
+
} // namespace Inner::Detail
|
|
298
|
+
|
|
299
|
+
} // namespace MyNS
|
|
300
|
+
|
|
301
|
+
/* ── Template with SFINAE ─────────────────────────────────────────────── */
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* @brief SFINAE-enabled serialize function for Numeric types.
|
|
305
|
+
* @tparam T Numeric type.
|
|
306
|
+
* @param value The numeric value to serialize.
|
|
307
|
+
* @return String representation of the value.
|
|
308
|
+
*/
|
|
309
|
+
template <MyNS::Numeric T> std::string serialize(T value) {
|
|
310
|
+
return std::to_string(value);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @brief Overload for string serialization (identity transform).
|
|
315
|
+
* @param value The string to serialize.
|
|
316
|
+
* @return The input string unchanged.
|
|
317
|
+
*/
|
|
318
|
+
inline std::string serialize(const std::string &value) { return value; }
|
|
319
|
+
|
|
320
|
+
/* coverage extension block */
|
|
321
|
+
struct Pixel {
|
|
322
|
+
int r;
|
|
323
|
+
int g;
|
|
324
|
+
int b;
|
|
325
|
+
}; // inline struct comment
|
|
326
|
+
struct Size {
|
|
327
|
+
int w;
|
|
328
|
+
int h;
|
|
329
|
+
};
|
|
330
|
+
struct Bounds {
|
|
331
|
+
int x;
|
|
332
|
+
int y;
|
|
333
|
+
int w;
|
|
334
|
+
int h;
|
|
335
|
+
};
|
|
336
|
+
struct Marker {
|
|
337
|
+
int id;
|
|
338
|
+
};
|
|
339
|
+
enum Mode { ModeA, ModeB };
|
|
340
|
+
enum State { StateIdle, StateBusy };
|
|
341
|
+
enum Grade { GradeA, GradeB };
|
|
342
|
+
enum Severity { SevLow, SevHigh };
|
|
343
|
+
namespace extns {
|
|
344
|
+
inline int add_one(int v) { return v + 1; }
|
|
345
|
+
} // namespace extns
|
|
346
|
+
namespace ext_alpha {
|
|
347
|
+
inline int ping() { return 1; }
|
|
348
|
+
} // namespace ext_alpha
|
|
349
|
+
namespace ext_beta {
|
|
350
|
+
inline int pong() { return 2; }
|
|
351
|
+
} // namespace ext_beta
|
|
352
|
+
#define FEATURE_ALPHA 1
|
|
353
|
+
#define FEATURE_BETA 2
|
|
354
|
+
#define FEATURE_GAMMA 3
|
|
355
|
+
using NumberVec = std::vector<int>;
|
|
356
|
+
typedef long LongId;
|
|
357
|
+
|
|
358
|
+
/* REQ-COVER-SRS-231 START */
|
|
359
|
+
/**
|
|
360
|
+
* @REQ-COVER-SRS-231 block 1
|
|
361
|
+
* @brief Coverage helper construct 1.
|
|
362
|
+
* @details Provides deterministic fixture-level Doxygen coverage block 1.
|
|
363
|
+
* @param value Input value for helper construct 1.
|
|
364
|
+
* @return Output value for helper construct 1.
|
|
365
|
+
*/
|
|
366
|
+
int req_cover_cpp_1(int value) { return value + 1; }
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @REQ-COVER-SRS-231 block 2
|
|
370
|
+
* @brief Coverage helper construct 2.
|
|
371
|
+
* @details Provides deterministic fixture-level Doxygen coverage block 2.
|
|
372
|
+
* @param value Input value for helper construct 2.
|
|
373
|
+
* @return Output value for helper construct 2.
|
|
374
|
+
*/
|
|
375
|
+
int req_cover_cpp_2(int value) { return value + 2; }
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* @REQ-COVER-SRS-231 block 3
|
|
379
|
+
* @brief Coverage helper construct 3.
|
|
380
|
+
* @details Provides deterministic fixture-level Doxygen coverage block 3.
|
|
381
|
+
* @param value Input value for helper construct 3.
|
|
382
|
+
* @return Output value for helper construct 3.
|
|
383
|
+
*/
|
|
384
|
+
int req_cover_cpp_3(int value) { return value + 3; }
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @REQ-COVER-SRS-231 block 4
|
|
388
|
+
* @brief Coverage helper construct 4.
|
|
389
|
+
* @details Provides deterministic fixture-level Doxygen coverage block 4.
|
|
390
|
+
* @param value Input value for helper construct 4.
|
|
391
|
+
* @return Output value for helper construct 4.
|
|
392
|
+
*/
|
|
393
|
+
int req_cover_cpp_4(int value) { return value + 4; }
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @REQ-COVER-SRS-231 block 5
|
|
397
|
+
* @brief Coverage helper construct 5.
|
|
398
|
+
* @details Provides deterministic fixture-level Doxygen coverage block 5.
|
|
399
|
+
* @param value Input value for helper construct 5.
|
|
400
|
+
* @return Output value for helper construct 5.
|
|
401
|
+
*/
|
|
402
|
+
int req_cover_cpp_5(int value) { return value + 5; }
|
|
403
|
+
|
|
404
|
+
/* REQ-COVER-SRS-231 END */
|
|
405
|
+
|
|
406
|
+
// cppcheck-suppress-end passedByValue
|
|
407
|
+
// cppcheck-suppress-end unusedStructMember
|