(_ context.Context, _, databaseName string)
| 79 | } |
| 80 | |
| 81 | func getMetadataForTest(_ context.Context, _, databaseName string) (string, *model.DatabaseMetadata, error) { |
| 82 | if databaseName != "test" { |
| 83 | return "", nil, nil |
| 84 | } |
| 85 | |
| 86 | return "test", model.NewDatabaseMetadata(&storepb.DatabaseSchemaMetadata{ |
| 87 | Name: databaseName, |
| 88 | Schemas: []*storepb.SchemaMetadata{ |
| 89 | { |
| 90 | Name: "", |
| 91 | Tables: []*storepb.TableMetadata{ |
| 92 | {Name: "users"}, |
| 93 | {Name: "orders"}, |
| 94 | {Name: "my-collection"}, // special char - needs bracket notation |
| 95 | }, |
| 96 | }, |
| 97 | }, |
| 98 | }, nil, nil, storepb.Engine_MONGODB, true /* isObjectCaseSensitive */), nil |
| 99 | } |
| 100 | |
| 101 | // catchCaret finds the | marker in the input and returns: |
| 102 | // - the text with the marker removed |
nothing calls this directly
no test coverage detected