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

chore(weave): Unit Tests for stack management #1738

Merged
merged 11 commits into from
Jun 11, 2024

Conversation

tssweeney
Copy link
Collaborator

@tssweeney tssweeney commented Jun 7, 2024

This PR adds a bunch of unit tests for stack management. Currently the tests pass without code changes. However, given that this area of the code is likely going to get changed soon, i wanted to introduce a few tests to ensure everything is managed correctly.

@circle-job-mirror
Copy link

circle-job-mirror bot commented Jun 7, 2024

@tssweeney tssweeney marked this pull request as ready for review June 8, 2024 16:49
@tssweeney tssweeney requested a review from a team as a code owner June 8, 2024 16:49
parent_to_children_map = {}
roots = []
for call in calls:
if call.parent_id not in parent_to_children_map:
Copy link
Member

Choose a reason for hiding this comment

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

defaultdict 👀

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

)
)

if POP_REORDERS_STACK:
Copy link
Member

Choose a reason for hiding this comment

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

interesting....

Copy link
Member

Choose a reason for hiding this comment

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

I agree with the comment.

@tssweeney tssweeney merged commit 66480be into master Jun 11, 2024
24 checks passed
@tssweeney tssweeney deleted the tim/improved_stack_management branch June 11, 2024 22:44
@github-actions github-actions bot locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants