-
-
Notifications
You must be signed in to change notification settings - Fork 236
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 Alias @pmf
for @pmFromFile
#1291
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1291 +/- ##
===========================================
- Coverage 81.76% 16.55% -65.21%
===========================================
Files 169 149 -20
Lines 9770 8968 -802
===========================================
- Hits 7988 1485 -6503
- Misses 1533 7300 +5767
+ Partials 249 183 -66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thank you for your contribution. I don't think we need new tests for pmfromfile, we should just test that the pmFromFile pointer is the same as pm |
Add Alias for pmFromFile and Validate Equivalence with pm
I am new to Open Source Contributions. |
Hi, thanks for the PR! Some CI tests are failing:
|
Add Alias
@pmf
for@pmFromFile
Description
This pull request introduces the short alias
@pmf
for the operator@pmFromFile
in accordance with the documentation. The alias provides a shorthand for users while maintaining the same functionality as@pmFromFile
.Changes Made
Alias Registration:
@pmf
alias to thepmFromFile
operator by updating theRegister()
call in thepm_from_file.go
file.Test Suite:
pm_from_file_test.go
to validate both@pmFromFile
and its alias@pmf
.loadFromFile
function for unit testing without requiring actual files.Motivation
The
@pmf
alias was described in the documentation but was missing in the implementation. This PR aligns the implementation with the documentation and improves usability by providing a shorthand for@pmFromFile
.Testing
@pmFromFile
and@pmf
operators work as expected:go test
to ensure robust validation of functionality.Related Issues
Checklist
@pmf
.@pmf
alias in the code.