Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Conversation

@hiranya911
Copy link
Contributor

These methods are useful when working with immediate futures and other completed futures.

I also wanted to add some tests, but cannot get past the lint errors. Every time I make the slightest change to ApiFuturesTest.java, I get:

The following files are not formatted properly:

/Users/hkj/Projects/firebase-admin-java/api-common-java/src/test/java/com/google/api/core/ApiFuturesTest.java
:verifyGoogleJavaFormat FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':verifyGoogleJavaFormat'.
> Problems: formatting style violations

Not helpful :(

@codecov-io
Copy link

codecov-io commented Dec 8, 2017

Codecov Report

Merging #38 into master will increase coverage by 0.6%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master      #38     +/-   ##
===========================================
+ Coverage     59.23%   59.83%   +0.6%     
- Complexity      138      140      +2     
===========================================
  Files            15       15             
  Lines           601      610      +9     
  Branches         91       91             
===========================================
+ Hits            356      365      +9     
  Misses          223      223             
  Partials         22       22
Impacted Files Coverage Δ Complexity Δ
src/main/java/com/google/api/core/ApiFutures.java 93.87% <100%> (+1.37%) 13 <2> (+2) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a1abec...31d9283. Read the comment docs.

@garrettjonesgoogle
Copy link
Member

@hiranya911 add the googleJavaFormat task whenever you build to automatically fix formatting every time, for example:

./gradlew googleJavaFormat build

I look forward to having tests added.

@garrettjonesgoogle
Copy link
Member

Oh wait, you already got the tests added.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants