test. pubsub
            Namespace for testing Pubsub functions using the Cloud Functions for Firebase Test SDK.
Methods
exampleMessage
exampleMessage() returns functions.pubsub.Message
Fetch an example Message already populated with data.
- Returns
 - 
                  
non-null functions.pubsub.Message 
makeMessage
makeMessage(encodedString, attributes) returns functions.pubsub.Message
Function to create a Pubsub event for a message with data payload in the form of a base64-encoded string.
                      Parameter | 
                  |
|---|---|
| 
                         encodedString  | 
                      
                         string Base64-encoded string for the content of a   | 
                    
| 
                         attributes  | 
                      
                         Optional Object Attributes of  Value may be null.  | 
                    
- Returns
 - 
                  
non-null functions.pubsub.Message 
makeMessage
makeMessage(json, attributes) returns functions.pubsub.Message
Function to create a Pubsub event for a message with JSON payload.
                      Parameter | 
                  |
|---|---|
| 
                         json  | 
                      
                         Object Content of  Value must not be null.  | 
                    
| 
                         attributes  | 
                      
                         Optional Object Attributes of  Value may be null.  | 
                    
- Returns
 - 
                  
non-null functions.pubsub.Message