-
Notifications
You must be signed in to change notification settings - Fork 163
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 ShowUsedInfoClasses #3387
Add ShowUsedInfoClasses #3387
Conversation
310eec5
to
3e63c74
Compare
Codecov Report
@@ Coverage Diff @@
## master #3387 +/- ##
==========================================
+ Coverage 77.51% 85.16% +7.64%
==========================================
Files 691 698 +7
Lines 340399 344098 +3699
==========================================
+ Hits 263875 293037 +29162
+ Misses 76524 51061 -25463
|
3e63c74
to
d33ef0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in the 1st commit message: Seperate -> Separate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 2nd commit message says ShowUsedInfoClasses
but the name of the new library function is ShowInfoClasses
d33ef0e
to
e0e94f7
Compare
Hopefully all issues fixed |
Wait, the naming is inconsistent. I'm going to standardise on ShowUsedInfoClasses. |
e0e94f7
to
f942d05
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had briefly looked at this before, when I didn't have time to write comments, but my comments would have been about the documentation. @fingolfin has suggested pretty much everything that I was going to suggest, leaving me with not much to do.
77cd262
to
55db386
Compare
55db386
to
dfb8333
Compare
5f0c032
to
46b7931
Compare
src/info.c
Outdated
STATE(ShowUsedInfoClassesActive) = 0; | ||
} | ||
else { | ||
ErrorMayQuit("<setting> should be true or false", 0, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also use RequireTrueOrFalse
for a consistent error message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and then a test of this error handling would also be nice, for full coverage.
lib/info.gd
Outdated
@@ -131,6 +131,7 @@ DeclareOperation("InfoLevel", [IsInfoClass]); | |||
DeclareGlobalFunction("SetInfoHandler"); | |||
DeclareGlobalFunction("DefaultInfoHandler"); | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this empty line inserted in a file that otherwise is not modified at all in this PR?
src/info.c
Outdated
STATE(ShowUsedInfoClassesActive) = 0; | ||
} | ||
else { | ||
ErrorMayQuit("<setting> should be true or false", 0, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and then a test of this error handling would also be nice, for full coverage.
46b7931
to
436ca5c
Compare
Thanks for feedback, (hopefully) all issues fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
Fixes #3379
This is two commits -- the first pulls some Info stuff that was probably in the wrong place into it's own file, the second then adds ShowUsedInfoClasses (as described in the docs, and #3379).