Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: support functions::Function in Run() #340

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 1 commit into from
Mar 15, 2022
Merged

feat: support functions::Function in Run() #340

merged 1 commit into from
Mar 15, 2022

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Mar 15, 2022

Application developers can use functions::Function as a wrapper for
their functions in unit and integration tests. Note that we need to
change the buildpacks (in a separate repository) to completely support
this feature.

Application developers can use `functions::Function` as a wrapper for
their functions in unit and integration tests.  Note that we need to
change the buildpacks (in a separate repository) to completely support
this feature.
@codecov
Copy link

codecov bot commented Mar 15, 2022

Codecov Report

Merging #340 (ca48f3b) into main (e95a5d8) will decrease coverage by 0.04%.
The diff coverage is 89.65%.

@@            Coverage Diff             @@
##             main     #340      +/-   ##
==========================================
- Coverage   89.29%   89.24%   -0.05%     
==========================================
  Files          98       98              
  Lines        2727     2733       +6     
==========================================
+ Hits         2435     2439       +4     
- Misses        292      294       +2     
Impacted Files Coverage Δ
google/cloud/functions/internal/framework_impl.cc 72.85% <82.35%> (-1.39%) ⬇️
...tions/integration_tests/cloud_event_conformance.cc 95.83% <100.00%> (ø)
...functions/integration_tests/cloud_event_handler.cc 100.00% <100.00%> (ø)
...e/cloud/functions/integration_tests/echo_server.cc 100.00% <100.00%> (ø)
...ud/functions/integration_tests/http_conformance.cc 100.00% <100.00%> (ø)
...le/cloud/functions/internal/framework_impl_test.cc 95.34% <100.00%> (+0.11%) ⬆️

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 e95a5d8...ca48f3b. Read the comment docs.

@coryan coryan marked this pull request as ready for review March 15, 2022 19:35
@coryan coryan requested a review from a team as a code owner March 15, 2022 19:35
@coryan coryan enabled auto-merge (squash) March 15, 2022 19:35
* When deploying code to Google Cloud Functions applications should **not** use
* this function directly. The buildpack will automatically create a `main()`
* and invoke `Run()` with the correct parameters. We recommend that application
* developers use this function only for local development and integration
Copy link
Contributor

Choose a reason for hiding this comment

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

Here and 3 lines up where it advises not to "use this function". I think it would be clearer to say [to not] "call this function".

/**
* Runs function wrapped by @p handler.
*
* Starts a HTTP server at the address and listening endpoint described by
Copy link
Contributor

Choose a reason for hiding this comment

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

a -> an

@coryan coryan merged commit aae4eb9 into GoogleCloudPlatform:main Mar 15, 2022
@coryan
Copy link
Contributor Author

coryan commented Mar 15, 2022

You tripped the auto merge, I will send those fixes in a separate PR.

@coryan coryan deleted the feat-declarative-signature-configuration-pr2 branch March 15, 2022 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants