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,430 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file fixture_java.java
|
|
3
|
+
* @brief Comprehensive Java test fixture for parser validation.
|
|
4
|
+
* @details Covers generics with wildcards, sealed classes, records, inner classes,
|
|
5
|
+
* anonymous classes, lambdas, method references, switch expressions,
|
|
6
|
+
* try-with-resources, annotations, and default interface methods.
|
|
7
|
+
*/
|
|
8
|
+
// Single line comment
|
|
9
|
+
/* Multi-line
|
|
10
|
+
comment */
|
|
11
|
+
package com.example.app;
|
|
12
|
+
|
|
13
|
+
import java.util.List;
|
|
14
|
+
import java.util.Map;
|
|
15
|
+
import java.util.Optional;
|
|
16
|
+
import java.util.function.Function;
|
|
17
|
+
import java.util.function.Predicate;
|
|
18
|
+
import java.util.stream.Collectors;
|
|
19
|
+
import static java.lang.Math.PI;
|
|
20
|
+
|
|
21
|
+
/* ── Annotation ───────────────────────────────────────────────────────── */
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @brief Marks a method as requiring authentication before invocation.
|
|
25
|
+
* @param role The minimum role level required for access.
|
|
26
|
+
*/
|
|
27
|
+
@interface RequiresAuth {
|
|
28
|
+
String role() default "user";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* ── Main class ───────────────────────────────────────────────────────── */
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @class MyClass
|
|
35
|
+
* @brief Primary class demonstrating various Java constructs.
|
|
36
|
+
* @param <T> Generic type parameter for flexible data handling.
|
|
37
|
+
*/
|
|
38
|
+
@SuppressWarnings("unchecked")
|
|
39
|
+
public class MyClass<T extends Comparable<T>> {
|
|
40
|
+
|
|
41
|
+
/** @brief Maximum buffer size constant. */
|
|
42
|
+
public static final int MAX_SIZE = 100;
|
|
43
|
+
|
|
44
|
+
/** @brief Type-safe internal storage for items. */
|
|
45
|
+
private List<T> items;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @brief Construct MyClass with an initial item list.
|
|
49
|
+
* @param items The starting collection of items.
|
|
50
|
+
*/
|
|
51
|
+
public MyClass(List<T> items) {
|
|
52
|
+
this.items = items;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @brief Greet a person by name on standard output.
|
|
57
|
+
* @param name The person's name; must not be null.
|
|
58
|
+
*/
|
|
59
|
+
public void greet(String name) {
|
|
60
|
+
/* Null check before output */
|
|
61
|
+
if (name == null) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
System.out.println("Hello, " + name);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @brief Helper method returning a status string.
|
|
69
|
+
* @return Always returns "ok".
|
|
70
|
+
*/
|
|
71
|
+
private static String helper() {
|
|
72
|
+
return "ok";
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @brief Find the first item matching a predicate.
|
|
77
|
+
* @param predicate Filter condition for items.
|
|
78
|
+
* @return Optional containing the first match, or empty.
|
|
79
|
+
*/
|
|
80
|
+
public Optional<T> findFirst(Predicate<T> predicate) {
|
|
81
|
+
for (T item : items) {
|
|
82
|
+
/* Test each item against predicate */
|
|
83
|
+
if (predicate.test(item)) {
|
|
84
|
+
return Optional.of(item);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return Optional.empty();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @brief Transform all items using a mapping function.
|
|
92
|
+
* @param <R> The result type after transformation.
|
|
93
|
+
* @param mapper Function to apply to each item.
|
|
94
|
+
* @return List of transformed results.
|
|
95
|
+
*/
|
|
96
|
+
public <R> List<R> map(Function<T, R> mapper) {
|
|
97
|
+
return items.stream()
|
|
98
|
+
.map(mapper)
|
|
99
|
+
.collect(Collectors.toList());
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @brief Process items with a wildcard-bounded list.
|
|
104
|
+
* @param source List of items extending Number.
|
|
105
|
+
* @return Sum of all numeric values as double.
|
|
106
|
+
*/
|
|
107
|
+
public double sumWildcard(List<? extends Number> source) {
|
|
108
|
+
double total = 0.0;
|
|
109
|
+
for (Number n : source) {
|
|
110
|
+
total += n.doubleValue();
|
|
111
|
+
}
|
|
112
|
+
return total;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* ── Inner class ──────────────────────────────────────────────────── */
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @class Builder
|
|
119
|
+
* @brief Inner builder class for constructing MyClass instances.
|
|
120
|
+
*/
|
|
121
|
+
public class Builder {
|
|
122
|
+
private List<T> pending;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @brief Add an item to the builder.
|
|
126
|
+
* @param item Item to include in the built instance.
|
|
127
|
+
* @return This builder for chaining.
|
|
128
|
+
*/
|
|
129
|
+
public Builder add(T item) {
|
|
130
|
+
pending.add(item);
|
|
131
|
+
return this;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @brief Finalize and create the MyClass instance.
|
|
136
|
+
* @return A new MyClass populated with accumulated items.
|
|
137
|
+
*/
|
|
138
|
+
public MyClass<T> build() {
|
|
139
|
+
return new MyClass<>(pending);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* ── Static nested class ──────────────────────────────────────────── */
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @class Config
|
|
147
|
+
* @brief Static configuration holder with validation.
|
|
148
|
+
*/
|
|
149
|
+
public static class Config {
|
|
150
|
+
/** @brief Configuration key string. */
|
|
151
|
+
public final String key;
|
|
152
|
+
/** @brief Configuration value. */
|
|
153
|
+
public final Object value;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @brief Construct a Config entry.
|
|
157
|
+
* @param key The configuration key.
|
|
158
|
+
* @param value The associated value.
|
|
159
|
+
*/
|
|
160
|
+
public Config(String key, Object value) {
|
|
161
|
+
this.key = key;
|
|
162
|
+
this.value = value;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* ── Interface with default methods ───────────────────────────────────── */
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @interface Greeter
|
|
171
|
+
* @brief Functional interface for greeting operations.
|
|
172
|
+
*/
|
|
173
|
+
public interface Greeter {
|
|
174
|
+
/**
|
|
175
|
+
* @brief Perform a greeting to the named person.
|
|
176
|
+
* @param name Recipient of the greeting.
|
|
177
|
+
*/
|
|
178
|
+
void sayHello(String name);
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @brief Default farewell method with implementation.
|
|
182
|
+
* @param name Person to bid farewell.
|
|
183
|
+
*/
|
|
184
|
+
default void sayGoodbye(String name) {
|
|
185
|
+
System.out.println("Goodbye, " + name);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @brief Static factory creating a simple Greeter.
|
|
190
|
+
* @return A Greeter that prints to stdout.
|
|
191
|
+
*/
|
|
192
|
+
static Greeter simple() {
|
|
193
|
+
/* Lambda implementing the functional interface */
|
|
194
|
+
return name -> System.out.println("Hi, " + name);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* ── Enum with methods ────────────────────────────────────────────────── */
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @enum Color
|
|
202
|
+
* @brief Color enum with associated hex values and behavior.
|
|
203
|
+
*/
|
|
204
|
+
public enum Color {
|
|
205
|
+
/** @brief Red color with hex #FF0000. */
|
|
206
|
+
RED("#FF0000"),
|
|
207
|
+
/** @brief Green color with hex #00FF00. */
|
|
208
|
+
GREEN("#00FF00"),
|
|
209
|
+
/** @brief Blue color with hex #0000FF. */
|
|
210
|
+
BLUE("#0000FF");
|
|
211
|
+
|
|
212
|
+
/** @brief The hexadecimal color code. */
|
|
213
|
+
private final String hex;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @brief Private constructor for enum constants.
|
|
217
|
+
* @param hex The hex string for this color.
|
|
218
|
+
*/
|
|
219
|
+
Color(String hex) {
|
|
220
|
+
this.hex = hex;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @brief Get the hex code of this color.
|
|
225
|
+
* @return Hex string including '#' prefix.
|
|
226
|
+
*/
|
|
227
|
+
public String getHex() {
|
|
228
|
+
return hex;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* ── Record (Java 16+) ────────────────────────────────────────────────── */
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @record Point
|
|
236
|
+
* @brief Immutable 2D coordinate record.
|
|
237
|
+
* @param x Horizontal coordinate.
|
|
238
|
+
* @param y Vertical coordinate.
|
|
239
|
+
*/
|
|
240
|
+
public record Point(double x, double y) {
|
|
241
|
+
/**
|
|
242
|
+
* @brief Compact constructor validating coordinates.
|
|
243
|
+
* @throws IllegalArgumentException If either coordinate is NaN.
|
|
244
|
+
*/
|
|
245
|
+
public Point {
|
|
246
|
+
if (Double.isNaN(x) || Double.isNaN(y)) {
|
|
247
|
+
throw new IllegalArgumentException("NaN coordinates");
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @brief Compute distance to another point.
|
|
253
|
+
* @param other Target point.
|
|
254
|
+
* @return Euclidean distance.
|
|
255
|
+
*/
|
|
256
|
+
public double distanceTo(Point other) {
|
|
257
|
+
double dx = this.x - other.x;
|
|
258
|
+
double dy = this.y - other.y;
|
|
259
|
+
return Math.sqrt(dx * dx + dy * dy);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* ── Sealed class hierarchy (Java 17+) ────────────────────────────────── */
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @class Shape
|
|
267
|
+
* @brief Sealed class permitting only Circle and Rectangle subtypes.
|
|
268
|
+
*/
|
|
269
|
+
public sealed class Shape permits Circle, Rectangle {
|
|
270
|
+
/**
|
|
271
|
+
* @brief Compute the area of this shape.
|
|
272
|
+
* @return Area as a double; subclasses provide implementation.
|
|
273
|
+
*/
|
|
274
|
+
public double area() {
|
|
275
|
+
return 0.0;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @class Circle
|
|
281
|
+
* @extends Shape
|
|
282
|
+
* @brief Circle shape with radius-based area computation.
|
|
283
|
+
*/
|
|
284
|
+
public final class Circle extends Shape {
|
|
285
|
+
/** @brief Radius of the circle. */
|
|
286
|
+
private final double radius;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @brief Construct a circle with a given radius.
|
|
290
|
+
* @param radius Non-negative radius value.
|
|
291
|
+
*/
|
|
292
|
+
public Circle(double radius) {
|
|
293
|
+
this.radius = radius;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @brief Compute circle area using π×r².
|
|
298
|
+
* @return The area of the circle.
|
|
299
|
+
*/
|
|
300
|
+
@Override
|
|
301
|
+
public double area() {
|
|
302
|
+
return PI * radius * radius;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @class Rectangle
|
|
308
|
+
* @extends Shape
|
|
309
|
+
* @brief Rectangle shape with width and height.
|
|
310
|
+
*/
|
|
311
|
+
public final class Rectangle extends Shape {
|
|
312
|
+
private final double width;
|
|
313
|
+
private final double height;
|
|
314
|
+
|
|
315
|
+
public Rectangle(double width, double height) {
|
|
316
|
+
this.width = width;
|
|
317
|
+
this.height = height;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@Override
|
|
321
|
+
public double area() {
|
|
322
|
+
return width * height;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* ── Utility class with switch expression ─────────────────────────────── */
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @class Evaluator
|
|
330
|
+
* @brief Demonstrates switch expressions and try-with-resources.
|
|
331
|
+
*/
|
|
332
|
+
public class Evaluator {
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @brief Describe a shape using pattern matching switch expression.
|
|
336
|
+
* @param shape The shape to describe.
|
|
337
|
+
* @return Human-readable description string.
|
|
338
|
+
*/
|
|
339
|
+
public static String describe(Shape shape) {
|
|
340
|
+
/* Switch expression with pattern matching (Java 21) */
|
|
341
|
+
return switch (shape) {
|
|
342
|
+
case Circle c -> "Circle with radius " + c.area();
|
|
343
|
+
case Rectangle r -> "Rectangle with area " + r.area();
|
|
344
|
+
default -> "Unknown shape";
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @brief Read a file safely with try-with-resources.
|
|
350
|
+
* @param path File system path to read.
|
|
351
|
+
* @return File contents as a string.
|
|
352
|
+
* @throws java.io.IOException If the file cannot be read.
|
|
353
|
+
*/
|
|
354
|
+
@RequiresAuth(role = "admin")
|
|
355
|
+
public static String readFile(String path) throws java.io.IOException {
|
|
356
|
+
/* Auto-closeable resource management */
|
|
357
|
+
try (var reader = new java.io.BufferedReader(new java.io.FileReader(path))) {
|
|
358
|
+
return reader.lines().collect(Collectors.joining("\n"));
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* coverage extension block */
|
|
364
|
+
package com.example.extra.one;
|
|
365
|
+
package com.example.extra.two;
|
|
366
|
+
package com.example.extra.three;
|
|
367
|
+
package com.example.extra.four;
|
|
368
|
+
interface Runner {}
|
|
369
|
+
public interface Mapper {}
|
|
370
|
+
public interface Handler {}
|
|
371
|
+
public interface Auditor {}
|
|
372
|
+
enum ModeJava { FAST, SAFE }
|
|
373
|
+
enum PhaseJava { INIT, RUN }
|
|
374
|
+
enum StatusJava { OPEN, CLOSED }
|
|
375
|
+
enum KindJava { A, B }
|
|
376
|
+
public static final int DEFAULT_LIMIT = 10;
|
|
377
|
+
public static final int RETRY_LIMIT = 3;
|
|
378
|
+
public static final int BUFFER_SIZE = 512;
|
|
379
|
+
public static final int MAX_USERS = 99;
|
|
380
|
+
@Trace
|
|
381
|
+
|
|
382
|
+
/* REQ-COVER-SRS-231 START */
|
|
383
|
+
class ReqCoverJava {
|
|
384
|
+
/**
|
|
385
|
+
* @REQ-COVER-SRS-231 block 1
|
|
386
|
+
* @brief Coverage helper construct 1.
|
|
387
|
+
* @details Provides deterministic fixture-level Doxygen coverage block 1.
|
|
388
|
+
* @param value Input value for helper construct 1.
|
|
389
|
+
* @return Output value for helper construct 1.
|
|
390
|
+
*/
|
|
391
|
+
static int reqCoverJava1(int value) { return value + 1; }
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* @REQ-COVER-SRS-231 block 2
|
|
395
|
+
* @brief Coverage helper construct 2.
|
|
396
|
+
* @details Provides deterministic fixture-level Doxygen coverage block 2.
|
|
397
|
+
* @param value Input value for helper construct 2.
|
|
398
|
+
* @return Output value for helper construct 2.
|
|
399
|
+
*/
|
|
400
|
+
static int reqCoverJava2(int value) { return value + 2; }
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @REQ-COVER-SRS-231 block 3
|
|
404
|
+
* @brief Coverage helper construct 3.
|
|
405
|
+
* @details Provides deterministic fixture-level Doxygen coverage block 3.
|
|
406
|
+
* @param value Input value for helper construct 3.
|
|
407
|
+
* @return Output value for helper construct 3.
|
|
408
|
+
*/
|
|
409
|
+
static int reqCoverJava3(int value) { return value + 3; }
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* @REQ-COVER-SRS-231 block 4
|
|
413
|
+
* @brief Coverage helper construct 4.
|
|
414
|
+
* @details Provides deterministic fixture-level Doxygen coverage block 4.
|
|
415
|
+
* @param value Input value for helper construct 4.
|
|
416
|
+
* @return Output value for helper construct 4.
|
|
417
|
+
*/
|
|
418
|
+
static int reqCoverJava4(int value) { return value + 4; }
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @REQ-COVER-SRS-231 block 5
|
|
422
|
+
* @brief Coverage helper construct 5.
|
|
423
|
+
* @details Provides deterministic fixture-level Doxygen coverage block 5.
|
|
424
|
+
* @param value Input value for helper construct 5.
|
|
425
|
+
* @return Output value for helper construct 5.
|
|
426
|
+
*/
|
|
427
|
+
static int reqCoverJava5(int value) { return value + 5; }
|
|
428
|
+
|
|
429
|
+
}
|
|
430
|
+
/* REQ-COVER-SRS-231 END */
|