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

Add unit tests for JavaScript semantic coloring #129

Merged
merged 1 commit into from Jun 13, 2019

Conversation

jordins
Copy link
Contributor

@jordins jordins commented Jun 12, 2019

Added some unit tests for Javascript semantic coloring.

#63

Note:
I'm very new into Rust and to your project and I would appreciate any feedback in order to improve!
Thanks!

Copy link
Owner

@jonhoo jonhoo left a comment

Choose a reason for hiding this comment

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

This looks like a great start, thank you! I think it's likely we'll want to re-use some of that same code for other tests, so perhaps move the struct TestData out of the particular fn you wrote and leave it in the mod tests instead? Apart from that it looks good, and we're really just waiting on CI!

@jordins
Copy link
Contributor Author

jordins commented Jun 12, 2019

Got it! I've just done the requested change!
Many many thanks!

@codecov-io
Copy link

Codecov Report

Merging #129 into master will increase coverage by 1.22%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #129      +/-   ##
==========================================
+ Coverage   84.93%   86.16%   +1.22%     
==========================================
  Files           8        8              
  Lines         737      766      +29     
==========================================
+ Hits          626      660      +34     
+ Misses        111      106       -5
Impacted Files Coverage Δ
src/flamegraph/color/palettes.rs 83.54% <100%> (+19.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07fe3b7...d6ffcd6. Read the comment docs.

@jonhoo jonhoo merged commit fca4745 into jonhoo:master Jun 13, 2019
@jonhoo
Copy link
Owner

jonhoo commented Jun 13, 2019

Thank you!

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.

None yet

3 participants