--- Fixture builders (mirror the JSON wire format of DatabaseMetadata proto) ---
(schemas ...map[string]any)
| 17 | // --- Fixture builders (mirror the JSON wire format of DatabaseMetadata proto) --- |
| 18 | |
| 19 | func makeMetadataResponse(schemas ...map[string]any) map[string]any { |
| 20 | return map[string]any{ |
| 21 | "name": "instances/prod-pg/databases/employee_db/metadata", |
| 22 | "schemas": schemas, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | func makeSchema(name string, tables ...map[string]any) map[string]any { |
| 27 | return map[string]any{ |
no outgoing calls
no test coverage detected