File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed
Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1818
1919declare (strict_types=1 );
2020
21+ // [START functions_cloudevent_pubsub_unit_test]
2122// [START functions_pubsub_unit_test]
2223
2324namespace Google \Cloud \Samples \Functions \HelloworldPubsub \Test ;
@@ -82,4 +83,5 @@ public function testFunction(
8283 }
8384}
8485
86+ // [END functions_cloudevent_pubsub_unit_test]
8587// [END functions_pubsub_unit_test]
Original file line number Diff line number Diff line change 1616 * limitations under the License.
1717 */
1818
19+ // [START functions_cloudevent_pubsub]
1920// [START functions_helloworld_pubsub]
2021
2122use CloudEvents \V1 \CloudEventInterface ;
@@ -38,3 +39,4 @@ function helloworldPubsub(CloudEventInterface $event): void
3839 fwrite ($ log , "Hello, $ name! " . PHP_EOL );
3940}
4041// [END functions_helloworld_pubsub]
42+ // [END functions_cloudevent_pubsub]
Original file line number Diff line number Diff line change 1919declare (strict_types=1 );
2020
2121// [START functions_storage_unit_test]
22+ // [START functions_cloudevent_storage_unit_test]
2223
2324namespace Google \Cloud \Samples \Functions \HelloworldStorage \Test ;
2425
@@ -89,4 +90,5 @@ public function testFunction(CloudEventInterface $cloudevent): void
8990 }
9091}
9192
93+ // [END functions_cloudevent_storage_unit_test]
9294// [END functions_storage_unit_test]
Original file line number Diff line number Diff line change 1616 * limitations under the License.
1717 */
1818
19+ // [START functions_cloudevent_storage]
1920// [START functions_helloworld_storage]
2021
2122use CloudEvents \V1 \CloudEventInterface ;
@@ -41,4 +42,5 @@ function helloGCS(CloudEventInterface $cloudevent)
4142 fwrite ($ log , 'Updated: ' . $ data ['updated ' ] . PHP_EOL );
4243}
4344
45+ // [END functions_cloudevent_storage]
4446// [END functions_helloworld_storage]
You can’t perform that action at this time.
0 commit comments