This repository was archived by the owner on Feb 24, 2026. It is now read-only.
add PerfUtil.clear()/Bytes.concat()/CollectionUtil.randomSet()#16
Merged
add PerfUtil.clear()/Bytes.concat()/CollectionUtil.randomSet()#16
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16 +/- ##
============================================
+ Coverage 31.39% 62.3% +30.91%
- Complexity 192 347 +155
============================================
Files 43 43
Lines 1360 1377 +17
Branches 210 213 +3
============================================
+ Hits 427 858 +431
+ Misses 878 420 -458
- Partials 55 99 +44
Continue to review full report at Codecov.
|
c1bec28 to
36dfb1c
Compare
Linary
suggested changes
Feb 28, 2019
| } | ||
|
|
||
| public void profilePackage(String... packages) throws | ||
| NotFoundException, CannotCompileException, |
53fac35 to
55d50be
Compare
zhoney
suggested changes
Feb 28, 2019
|
|
||
| public static Set<Integer> randomSet(int min, int max, int count) { | ||
| E.checkArgument(max > min, "Invalid min/max: %s/%s", min, max); | ||
| E.checkArgument(count <= max - min, "Incalid count %s", count); |
3ebd428 to
f58c22d
Compare
zhoney
suggested changes
Mar 1, 2019
|
|
||
| public static Set<Integer> randomSet(int min, int max, int count) { | ||
| E.checkArgument(max > min, "Invalid min/max: %s/%s", min, max); | ||
| E.checkArgument(count <= max - min, "Invalid count %s", count); |
also add some unit tests: HugeConfigTest, PerfUtilTest, NumericUtilTest, ReflectionUtilTest and TimeUtilTest. Change-Id: Ida64154a0bdee62e281585836c5e7ccfc6061c06
zhoney
approved these changes
Mar 1, 2019
Linary
approved these changes
Mar 1, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change-Id: Ida64154a0bdee62e281585836c5e7ccfc6061c06