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 Fprint #10

Merged
merged 5 commits into from
Jan 19, 2025
Merged

Add Fprint #10

merged 5 commits into from
Jan 19, 2025

Conversation

UnstoppableMango
Copy link
Contributor

No description provided.

Two new string methods have been added to the LiteralFileName and Ident nodes in the Abstract Syntax Tree (AST). These methods return the literal identifier of each node. Corresponding tests have also been added to ensure these new methods work as expected.
The print.go file has been updated to include the ability to print 'Recipe' and 'Rule' nodes. This includes writing the token, text, targets, prerequisites, and any associated recipes. Corresponding tests have also been added in print_test.go to ensure that these new functionalities work as expected.
Enhanced the test suite in print_test.go by adding a DescribeTable for surfacing errors. This includes multiple entries that simulate different error positions within the writing process of targets, prerequisites, and recipes. The new tests ensure that our package correctly handles and reports these errors.
Copy link

codecov bot commented Jan 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.20%. Comparing base (e2fa3ed) to head (06a48e7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
+ Coverage   93.57%   94.20%   +0.62%     
==========================================
  Files           7        8       +1     
  Lines         436      483      +47     
==========================================
+ Hits          408      455      +47     
  Misses         21       21              
  Partials        7        7              

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

Added a new section in the README file explaining how to use `make.Fprint` for writing ast nodes. Also, adjusted the default target and threshold values under 'patch' in the codecov configuration.
@UnstoppableMango UnstoppableMango merged commit c8f7490 into main Jan 19, 2025
4 checks passed
@UnstoppableMango UnstoppableMango deleted the printing branch January 19, 2025 18:02
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.

1 participant