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

[analysis][NFC] Refactor lattice unit tests #6065

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Conversation

tlively
Copy link
Member

@tlively tlively commented Oct 31, 2023

Many of the lattice tests were essentially copy-pasted from one lattice to the
next because they all tested isomorphic subsets of the various lattices,
specifically in the shape of a diamond. Refactor the code so that all lattices
that have tests of this shape use the same utility test functions.

@tlively
Copy link
Member Author

tlively commented Nov 1, 2023

Merge activity

  • Nov 1, 1:15 PM: @tlively started a stack merge that includes this pull request via Graphite.
  • Nov 1, 1:16 PM: Graphite rebased this pull request as part of a merge.
  • Nov 1, 2:09 PM: @tlively merged this pull request with Graphite.

Base automatically changed from valtype-lattice to main November 1, 2023 17:15
Many of the lattice tests were essentially copy-pasted from one lattice to the
next because they all tested isomorphic subsets of the various lattices,
specifically in the shape of a diamond. Refactor the code so that all lattices
that have tests of this shape use the same utility test functions.
@tlively tlively force-pushed the refactor-lattice-gtest branch from f65d8a0 to 3e6b7dd Compare November 1, 2023 17:16
@tlively tlively merged commit 5618d21 into main Nov 1, 2023
14 checks passed
@tlively tlively deleted the refactor-lattice-gtest branch November 1, 2023 18:09
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
Many of the lattice tests were essentially copy-pasted from one lattice to the
next because they all tested isomorphic subsets of the various lattices,
specifically in the shape of a diamond. Refactor the code so that all lattices
that have tests of this shape use the same utility test functions.
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