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 ShowUsedInfoClasses #3387

Merged
merged 2 commits into from
Apr 10, 2019
Merged

Conversation

ChrisJefferson
Copy link
Contributor

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).

@ChrisJefferson ChrisJefferson force-pushed the info-info branch 2 times, most recently from 310eec5 to 3e63c74 Compare March 31, 2019 21:34
@codecov
Copy link

codecov bot commented Mar 31, 2019

Codecov Report

Merging #3387 into master will increase coverage by 7.64%.
The diff coverage is 98.48%.

@@            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
Impacted Files Coverage Δ
src/gapstate.h 85.71% <ø> (ø) ⬆️
lib/info.gd 100% <ø> (ø) ⬆️
src/intrprtr.c 99.76% <ø> (+4.85%) ⬆️
src/stats.c 95.14% <ø> (+9.31%) ⬆️
lib/info.gi 85.15% <100%> (+1.42%) ⬆️
src/info.c 97.82% <97.82%> (ø)
lib/ieee754.g 100% <0%> (ø) ⬆️
lib/list.g 100% <0%> (ø) ⬆️
lib/teachmod.g 26.73% <0%> (ø)
lib/debug.g 23.57% <0%> (ø)
... and 254 more

@coveralls
Copy link

coveralls commented Mar 31, 2019

Coverage Status

Coverage increased (+0.002%) to 85.16% when pulling 436ca5c on ChrisJefferson:info-info into 359eee2 on gap-system:master.

Copy link
Member

@olexandr-konovalov olexandr-konovalov left a 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

Copy link
Member

@olexandr-konovalov olexandr-konovalov left a 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

doc/ref/debug.xml Outdated Show resolved Hide resolved
doc/ref/debug.xml Outdated Show resolved Hide resolved
@DominikBernhardt DominikBernhardt added kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements kind: new feature labels Apr 1, 2019
@ChrisJefferson
Copy link
Contributor Author

Hopefully all issues fixed

@ChrisJefferson
Copy link
Contributor Author

Wait, the naming is inconsistent. I'm going to standardise on ShowUsedInfoClasses.

src/info.h Outdated Show resolved Hide resolved
src/info.c Outdated Show resolved Hide resolved
doc/ref/debug.xml Outdated Show resolved Hide resolved
doc/ref/debug.xml Outdated Show resolved Hide resolved
doc/ref/debug.xml Outdated Show resolved Hide resolved
lib/info.gd Outdated Show resolved Hide resolved
lib/info.gd Outdated Show resolved Hide resolved
lib/info.gi Outdated Show resolved Hide resolved
lib/info.gi Show resolved Hide resolved
src/info.c Outdated Show resolved Hide resolved
@wilfwilson wilfwilson added the release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes label Apr 6, 2019
Copy link
Member

@wilfwilson wilfwilson left a 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.

doc/ref/debug.xml Outdated Show resolved Hide resolved
doc/ref/debug.xml Outdated Show resolved Hide resolved
src/info.c Outdated
STATE(ShowUsedInfoClassesActive) = 0;
}
else {
ErrorMayQuit("<setting> should be true or false", 0, 0);
Copy link
Member

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

Copy link
Member

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.

src/info.c Outdated Show resolved Hide resolved
lib/info.gi Outdated Show resolved Hide resolved
lib/info.gd Outdated
@@ -131,6 +131,7 @@ DeclareOperation("InfoLevel", [IsInfoClass]);
DeclareGlobalFunction("SetInfoHandler");
DeclareGlobalFunction("DefaultInfoHandler");


Copy link
Member

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 Show resolved Hide resolved
src/info.c Outdated
STATE(ShowUsedInfoClassesActive) = 0;
}
else {
ErrorMayQuit("<setting> should be true or false", 0, 0);
Copy link
Member

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.

@ChrisJefferson
Copy link
Contributor Author

Thanks for feedback, (hopefully) all issues fixed.

Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@olexandr-konovalov olexandr-konovalov added this to the GAP 4.11 milestone Apr 10, 2019
@wilfwilson wilfwilson merged commit 741ffee into gap-system:master Apr 10, 2019
@ChrisJefferson ChrisJefferson deleted the info-info branch May 8, 2019 16:53
@DominikBernhardt DominikBernhardt added release notes: added PRs introducing changes that have since been mentioned in the release notes and removed release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements kind: new feature release notes: added PRs introducing changes that have since been mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ShowUsedInfoClasses
6 participants