-
Notifications
You must be signed in to change notification settings - Fork 595
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
Bring test coverage to 100% #870
Bring test coverage to 100% #870
Conversation
@@ -281,6 +279,18 @@ describe('BigQuery/Table', function() { | |||
table.createWriteStream(fileType).emit('writing'); | |||
}); | |||
|
|||
it('should format a schema', function(done) { | |||
var expectedSchema = Table.createSchemaFromString_(SCHEMA_STRING); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
d4f3fb7
to
1fe093a
Compare
return (tableOverrides[tableMethod] || tableCached[tableMethod]) | ||
.apply(this, arguments); | ||
}; | ||
}); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
1fe093a
to
87e6343
Compare
it('should add success redirect', function(done) { | ||
file.getSignedPolicy({ | ||
expires: Date.now() + 5, | ||
successRedirect: 'redirect' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
tests: cover bigquery/table leaks tests: cover datastore/transaction leaks tests: cover datastore/dataset leaks tests: cover storage/file leaks tests: cover storage/bucket leaks tests: cover search/index leaks tests: cover storage/acl leaks tests: cover dns/zone leaks tests: cover datastore/entity leaks tests: cover pubsub/subscription leaks
87e6343
to
3713fa5
Compare
Bring test coverage to 100%
Now we have to work to keep it at 100% forever! |
* docs: clarified some LRO types PiperOrigin-RevId: 394302922 Source-Link: googleapis/googleapis@cd16abb Source-Link: googleapis/googleapis-gen@64782e6 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Jeffrey Rennie <[email protected]>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Summer Ji <[email protected]>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Summer Ji <[email protected]>
... I think. Running
npm cover
doesn't work on my end.But, I went over all of these < 100% files: https://coveralls.io/builds/3590802 and covered up the holes.
Along the way, I also caught some places we were inconsistent with our
setMetadata
method. The signature is supposed to be:But some places, it was:
Coincidentally,
apiResponse
andmetadata
would have been the same thing-- the apiResponse is what becomes the metadata. Now, however, it's onlyfunction(err, apiResponse) {}
so that if an error occurs, the handler still gets the benefit of receiving the API response.