-
Notifications
You must be signed in to change notification settings - Fork 36
Tests for zephir parser #76
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
Conversation
* Tests for AND operator * Tests for DECR operator * Tests for DIV operator * Tests for DOT operator * Tests for INCR operator * Tests for MOD operator * Tests for MUL operator * Tests for OR operator * Tests for SUB operator
Codecov Report
@@ Coverage Diff @@
## development #76 +/- ##
================================================
+ Coverage 39.63% 58.88% +19.24%
================================================
Files 5 5
Lines 2712 2719 +7
================================================
+ Hits 1075 1601 +526
+ Misses 1637 1118 -519
Continue to review full report at Codecov.
|
While looking at the build script, I think there is a problem with code coverage generation. The codecov bash script uses
https://travis-ci.org/phalcon/php-zephir-parser/jobs/561353443#L798 Is there a reason why we strip the absolute path from |
Feel free to remove this logic from parser.mk as a far we no longer store parser.c and scanner.c under the version control. |
Removed stripping to allow the code coverage report to properly find files. Was initially added since parser.c and scanner.c were checked into source control
- Tests for function definitions - Tests for erange and irange operator - Tests for break, continue, require, return, throw, unset statements - Tests for new class operator
Codecov Report
@@ Coverage Diff @@
## development #76 +/- ##
================================================
+ Coverage 39.63% 73.85% +34.21%
================================================
Files 5 5
Lines 2712 2719 +7
================================================
+ Hits 1075 2008 +933
+ Misses 1637 711 -926
Continue to review full report at Codecov.
|
- tests for class constants - tests for interfaces - tests for closure short syntax - modified tests for function definitions - tests for operators instanceof, static-constant-access, static-property-access - tests for empty, fcall, fetch, mcall, and scall statements
Hello, In Thank you. |
As a far as I remember it was not finished. Do you have a reasonable proposition to work with those types? But at the moment it seems good to me. Thank you! |
I'm not sure if those types have any real purpose. In the zephir project, variables defined with those types are just set to the type
Thanks you for your time and for reviewing all that code. |
Hello!
Here are a few new tests so far for the parser. I'm going to continue pushing more tests to this branch, so if you want to hold off on merging, that will be fine.
Hopefully this will greatly improve code coverage so I can start working on getting the language to support uppercase classes, methods, and possibly variables.
Thanks