Skip to content

Conversation

@jbcoe
Copy link
Owner

@jbcoe jbcoe commented Jan 31, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the test suite by embedding the C++ test source code directly within the Python test file instead of maintaining it as a separate external file. The change improves test maintainability by keeping test data alongside test code.

Changes:

  • Moved C++ source code from external file sample.cc into an inline SOURCE constant in the test file
  • Updated test setup to use the unsaved_files parameter to provide the inline source to the clang parser
  • Deleted the now-unnecessary sample.cc file

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test_py_cppmodel.py Added inline SOURCE constant containing C++ code and configured TranslationUnit to use it via unsaved_files parameter
sample.cc Removed external C++ source file as it's now defined inline in the test

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jbcoe jbcoe merged commit dacf1ed into main Jan 31, 2026
11 checks passed
@jbcoe jbcoe deleted the jbcoe/python-tests branch January 31, 2026 18:37
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.

2 participants