Skip to content

Add spector test for azure/client-generator-core/access#859

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-spector-test-azure-client-generator
Draft

Add spector test for azure/client-generator-core/access#859
Copilot wants to merge 2 commits intomainfrom
copilot/add-spector-test-azure-client-generator

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

Adds test coverage for the @access decorator from @azure-tools/typespec-client-generator-core, which controls whether types and operations are exposed in generated client libraries.

Changes

  • Enabled spector_access test in tspcompile.js and workspace manifest
  • Generated client code verifying:
    • @access(Access.public) operations → public Rust methods
    • @access(Access.internal) operations → pub(crate) Rust methods (generated but not exported)
    • Models used by public operations → exported regardless of decorator
  • Added integration tests for public operations and shared model scenarios

The generated code correctly maps TypeSpec access semantics to Rust visibility modifiers, ensuring internal implementation details remain unexposed while maintaining necessary model accessibility.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add spector test for azure-http-specs\azure\client-generator-core\access</issue_title>
<issue_description>Do not modify the generated rust source code (in src/generated), only modify the emitter code (in /packages/typespec-rust/src/) if necessary.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Uncommented access test in tspcompile.js
- Added access package to workspace members
- Generated Rust code from TypeSpec specs
- Created integration tests for public operations
- All tests compile successfully

Co-authored-by: antkmsft <41349689+antkmsft@users.noreply.github.com>
Copilot AI changed the title [WIP] Add spector test for azure client generator Add spector test for azure/client-generator-core/access Feb 17, 2026
Copilot AI requested a review from antkmsft February 17, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add spector test for azure-http-specs\azure\client-generator-core\access\

2 participants