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: Add execution test framework #97

Merged
merged 3 commits into from
Sep 9, 2024
Merged

test: Add execution test framework #97

merged 3 commits into from
Sep 9, 2024

Conversation

doug-q
Copy link
Collaborator

@doug-q doug-q commented Sep 9, 2024

No description provided.

@doug-q doug-q requested a review from a team as a code owner September 9, 2024 09:37
@doug-q doug-q requested review from cqc-alec and croyzor and removed request for cqc-alec September 9, 2024 09:37
@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 84.05797% with 11 lines in your changes missing coverage. Please review.

Project coverage is 81.77%. Comparing base (6929fa2) to head (9451d0e).

Files with missing lines Patch % Lines
src/emit/test.rs 80.35% 6 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #97      +/-   ##
==========================================
+ Coverage   81.67%   81.77%   +0.10%     
==========================================
  Files          19       19              
  Lines        2641     2705      +64     
  Branches     2641     2705      +64     
==========================================
+ Hits         2157     2212      +55     
- Misses        304      308       +4     
- Partials      180      185       +5     
Flag Coverage Δ
rust 81.77% <84.05%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/test.rs Show resolved Hide resolved
src/emit/test.rs Outdated Show resolved Hide resolved
src/emit/test.rs Show resolved Hide resolved
@@ -71,6 +140,9 @@ impl SimpleHugrConfig {
.define_function("main", HugrFuncType::new(self.ins, self.outs))
.unwrap();
make(func_b, &self.extensions);

// println!("{}", mod_b.hugr().mermaid_string());
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is intentional. I have added a comment explaining.

doug-q and others added 2 commits September 9, 2024 10:53
Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
@doug-q doug-q added this pull request to the merge queue Sep 9, 2024
Merged via the queue into main with commit aba5bd0 Sep 9, 2024
10 checks passed
@doug-q doug-q deleted the doug/exec-tests branch September 9, 2024 10:08
@hugrbot hugrbot mentioned this pull request Sep 9, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 16, 2024
## 🤖 New release
* `hugr-llvm`: 0.4.0 -> 0.5.0

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## [0.5.0](v0.4.0...v0.5.0) -
2024-09-16

### New Features

- Add emitters for int <-> float/usize conversions
([#94](#94))
- [**breaking**] array ops
([#96](#96))
- Add conversions itobool, ifrombool
([#101](#101))
- Add `tket2` feature and lowerings for `tket2.rotation` extension
([#100](#100))

### Testing

- Add execution test framework
([#97](#97))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).
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.

3 participants