Skip to content

Remove test duplication #2494

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

Merged
merged 3 commits into from
Mar 10, 2021
Merged

Remove test duplication #2494

merged 3 commits into from
Mar 10, 2021

Conversation

schmidt-sebastian
Copy link
Contributor

This merges the ObjectValue and MutableObjectValue tests. They used to be different since we had ObjectValue and ObjectValueBuilder. The PR also makes an effort to remove test duplication, but makes no guarantees here.

This merges the ObjectValue and MutableObjectValue tests. They used to be different since we had ObjectValue and ObjectValueBuilder. The PR also makes an effort to remove test duplication, but makes no guarantees here.
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 10, 2021

Coverage Report

Affected SDKs

  • firebase-firestore

    SDK overall coverage changed from 47.11% (7bcedca) to 47.07% (87880934) by -0.05%.

    Filename Base (7bcedca) Head (87880934) Diff
    GrpcCallProvider.java 68.18% 57.95% -10.23%

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage.
Report files are located at <product-build-dir>/reports/jacoco/.

Head commit (87880934) is created by Prow via merging commits: 7bcedca 327c3bf.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 10, 2021

Binary Size Report

Affected SDKs

No changes between base commit (7bcedca) and head commit (87880934).

Test Logs

Notes

Head commit (87880934) is created by Prow via merging commits: 7bcedca 327c3bf.

private Value emptyObject = Value.newBuilder().setMapValue(MapValue.getDefaultInstance()).build();

@Test
public void supportsEmptyObjectValues() {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: All of the other test methods in this class have their names prefixed with "test". Can you rename supportsEmptyObjectValues to also follow this convention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@schmidt-sebastian schmidt-sebastian merged commit 49f6587 into master Mar 10, 2021
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/dedup branch March 10, 2021 17:04
@firebase firebase locked and limited conversation to collaborators Apr 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Override cla size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants