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 18
18
19
19
declare (strict_types=1 );
20
20
21
+ // [START functions_cloudevent_pubsub_unit_test]
21
22
// [START functions_pubsub_unit_test]
22
23
23
24
namespace Google \Cloud \Samples \Functions \HelloworldPubsub \Test ;
@@ -82,4 +83,5 @@ public function testFunction(
82
83
}
83
84
}
84
85
86
+ // [END functions_cloudevent_pubsub_unit_test]
85
87
// [END functions_pubsub_unit_test]
Original file line number Diff line number Diff line change 16
16
* limitations under the License.
17
17
*/
18
18
19
+ // [START functions_cloudevent_pubsub]
19
20
// [START functions_helloworld_pubsub]
20
21
21
22
use CloudEvents \V1 \CloudEventInterface ;
@@ -38,3 +39,4 @@ function helloworldPubsub(CloudEventInterface $event): void
38
39
fwrite ($ log , "Hello, $ name! " . PHP_EOL );
39
40
}
40
41
// [END functions_helloworld_pubsub]
42
+ // [END functions_cloudevent_pubsub]
Original file line number Diff line number Diff line change 19
19
declare (strict_types=1 );
20
20
21
21
// [START functions_storage_unit_test]
22
+ // [START functions_cloudevent_storage_unit_test]
22
23
23
24
namespace Google \Cloud \Samples \Functions \HelloworldStorage \Test ;
24
25
@@ -89,4 +90,5 @@ public function testFunction(CloudEventInterface $cloudevent): void
89
90
}
90
91
}
91
92
93
+ // [END functions_cloudevent_storage_unit_test]
92
94
// [END functions_storage_unit_test]
Original file line number Diff line number Diff line change 16
16
* limitations under the License.
17
17
*/
18
18
19
+ // [START functions_cloudevent_storage]
19
20
// [START functions_helloworld_storage]
20
21
21
22
use CloudEvents \V1 \CloudEventInterface ;
@@ -41,4 +42,5 @@ function helloGCS(CloudEventInterface $cloudevent)
41
42
fwrite ($ log , 'Updated: ' . $ data ['updated ' ] . PHP_EOL );
42
43
}
43
44
45
+ // [END functions_cloudevent_storage]
44
46
// [END functions_helloworld_storage]
You can’t perform that action at this time.
0 commit comments