Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework some project and bom methods #35

Merged
merged 5 commits into from
Aug 8, 2023
Merged

Conversation

gernot-h
Copy link
Collaborator

@gernot-h gernot-h commented Aug 7, 2023

During development for #33, I stumbled over some methods I wanted to improve and decided to restructure some others for better re-use or better testability.

I think these commits are ready to be merged if you agree, so we could reduce the patch queue in #33.

Move some reusable code from project classes to base class.
They now allow an arbitrary number of arguments, so we also don't neet
the _no_args variant any more.
Replace have_relative_source_file_path() helper function by a generic
have_relative_ext_ref_path() which can be re-used for other tasks.

To be sure we do the right thing, also add test cases for absolute and
relative paths.
@gernot-h gernot-h assigned gernot-h and tngraf and unassigned gernot-h Aug 7, 2023
@gernot-h
Copy link
Collaborator Author

gernot-h commented Aug 7, 2023

@tngraf, let me know what you think - if you don't like some changes, I can rework things as needed. :-)

@tngraf tngraf merged commit e7481fa into main Aug 8, 2023
5 checks passed
@gernot-h gernot-h deleted the rework-project-bom-code branch August 9, 2023 15:15
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.

None yet

2 participants