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

Support = in record initialisation #4519

Merged
merged 1 commit into from
Nov 24, 2024
Merged

Support = in record initialisation #4519

merged 1 commit into from
Nov 24, 2024

Conversation

nrc
Copy link
Contributor

@nrc nrc commented Nov 20, 2024

No description provided.

Copy link

qa-wolf bot commented Nov 20, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Nov 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Nov 24, 2024 8:11pm

@jtran
Copy link
Collaborator

jtran commented Nov 20, 2024

Frontend tests are failing. They format code (using unparser.rs), so even though they haven't been updated, they're getting the updated syntax.

I think we should update the TS to generate and expect the new syntax.

Looking good otherwise, though.

@@ -75,6 +75,9 @@ fn unparse(test_name: &str) {
};
// Check recasting the AST produces the original string.
let actual = ast.recast(&Default::default(), 0);
if matches!(std::env::var("EXPECTORATE").as_deref(), Ok("overwrite")) {
std::fs::write(format!("tests/{test_name}/input.kcl"), &actual).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice. I've been running these with cargo insta test --accept but I don't think we can detect that in the same way.

Copy link
Collaborator

@jtran jtran left a comment

Choose a reason for hiding this comment

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

Great!

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 99.35484% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.99%. Comparing base (f760a77) to head (d3b8333).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/wasm-lib/kcl/src/simulation_tests.rs 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4519      +/-   ##
==========================================
- Coverage   85.99%   85.99%   -0.01%     
==========================================
  Files          81       81              
  Lines       29520    29527       +7     
==========================================
+ Hits        25385    25391       +6     
- Misses       4135     4136       +1     
Flag Coverage Δ
wasm-lib 85.99% <99.35%> (-0.01%) ⬇️

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.


🚨 Try these New Features:

@nrc nrc enabled auto-merge (squash) November 22, 2024 05:38
@nrc nrc merged commit 66f6b74 into main Nov 24, 2024
32 checks passed
@nrc nrc deleted the nrc-record-init branch November 24, 2024 20:21
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