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

test: data-driven tests for partial evaluation #578

Merged
merged 7 commits into from
Sep 26, 2023

Conversation

lars-reimann
Copy link
Member

Closes partially #433.

Summary of Changes

  • Implement a data-driven way to test the partial evaluator
  • Add a very basic port of our implementation from Xtext and lay out the general structure of the full implementation

@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #578 (7729384) into main (2071012) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              main      #578    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           24        27     +3     
  Lines         2309      2997   +688     
  Branches       455       502    +47     
==========================================
+ Hits          2309      2997   +688     
Files Coverage Δ
src/language/grammar/safe-ds-value-converter.ts 100.00% <100.00%> (ø)
src/language/partialEvaluation/model.ts 100.00% <100.00%> (ø)
...ge/partialEvaluation/toConstantExpressionOrNull.ts 100.00% <100.00%> (ø)
src/language/safe-ds-module.ts 100.00% <100.00%> (ø)

@github-actions
Copy link

github-actions bot commented Sep 26, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ JSON eslint-plugin-jsonc 1 0 0 0.79s
✅ JSON jsonlint 1 0 0.17s
✅ JSON npm-package-json-lint yes no 0.51s
✅ JSON prettier 1 0 0 0.46s
✅ JSON v8r 1 0 2.76s
✅ MARKDOWN markdown-link-check 2 0 0.36s
✅ REPOSITORY git_diff yes no 0.05s
✅ TYPESCRIPT eslint 9 0 0 5.73s
✅ TYPESCRIPT prettier 9 0 0 1.48s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@lars-reimann lars-reimann merged commit 2e6be9f into main Sep 26, 2023
6 checks passed
@lars-reimann lars-reimann deleted the partial-evalution-tests branch September 26, 2023 13:03
@lars-reimann
Copy link
Member Author

🎉 This PR is included in version 0.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Included in a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants