The purpose of this document is to outline the following
- Why asynchronous tests can pass even though it is not testing anything
- How to actually test asynchronous code
- In one word: javascript
- Javascript is an asynchronous, non-blocking language.
The purpose of this document is to outline the following
| function getGoogleAddress(placeId) { | |
| var API_KEY = ''; | |
| var baseUrl = 'https://maps.googleapis.com/maps/api/geocode/json'; | |
| var queryUrl = baseUrl + '?key=' + API_KEY + '&place_id=' + placeId; | |
| Logger.log(queryUrl); | |
| var response = UrlFetchApp.fetch(queryUrl); | |
| var json = response.getContentText(); | |
| var result = JSON.parse(json).results[0]; | |
| var placeId = result.formatted_address; |
| def generate_pyspark_structs(client): | |
| property_resource = client.get_resource("Property") | |
| property_class = property_resource.get_class("Property") | |
| meta = property_class.table | |
| fields = [] | |
| for col in meta: | |
| # cols.append(dict(col)) | |
| name = col["SystemName"] | |
| data_type = col["DataType"] |