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

Added unit tests for boa_ast::Punctuator #2884

Merged
merged 2 commits into from
May 5, 2023
Merged

Added unit tests for boa_ast::Punctuator #2884

merged 2 commits into from
May 5, 2023

Conversation

Razican
Copy link
Member

@Razican Razican commented Apr 30, 2023

This is a follow up of #2883, which adds more tests for boa_ast::Punctuator.

@Razican Razican added test Issues and PRs related to the tests. ast Issue surrounding the abstract syntax tree labels Apr 30, 2023
@Razican Razican added this to the v0.17.0 milestone Apr 30, 2023
@github-actions
Copy link

github-actions bot commented Apr 30, 2023

Test262 conformance changes

Test result main count PR count difference
Total 94,601 94,601 0
Passed 73,293 73,293 0
Ignored 17,540 17,540 0
Failed 3,768 3,768 0
Panics 0 0 0
Conformance 77.48% 77.48% 0.00%

@codecov
Copy link

codecov bot commented Apr 30, 2023

Codecov Report

Merging #2884 (1236b3a) into main (c738b50) will increase coverage by 0.35%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2884      +/-   ##
==========================================
+ Coverage   51.24%   51.59%   +0.35%     
==========================================
  Files         427      427              
  Lines       42522    42625     +103     
==========================================
+ Hits        21790    21993     +203     
+ Misses      20732    20632     -100     
Impacted Files Coverage Δ
boa_ast/src/punctuator/mod.rs 100.00% <100.00%> (ø)

... and 34 files with indirect coverage changes

@@ -177,6 +177,7 @@ impl Punctuator {
Self::Mul => Some(BinaryOp::Arithmetic(ArithmeticOp::Mul)),
Self::Div => Some(BinaryOp::Arithmetic(ArithmeticOp::Div)),
Self::Mod => Some(BinaryOp::Arithmetic(ArithmeticOp::Mod)),
Self::Exp => Some(BinaryOp::Arithmetic(ArithmeticOp::Exp)),
Copy link
Member Author

Choose a reason for hiding this comment

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

This was somehow missing before, but it doesn't seem to fix any new test.

Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@Razican
Copy link
Member Author

Razican commented May 4, 2023

Prefix removed :)

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

LGTM!

@jedel1043 jedel1043 added this pull request to the merge queue May 4, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks May 4, 2023
@Razican Razican added this pull request to the merge queue May 5, 2023
Merged via the queue into main with commit 1965492 May 5, 2023
@bors bors bot deleted the test_ast_punctuator branch May 5, 2023 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ast Issue surrounding the abstract syntax tree test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants