(t *testing.T, path string)
| 17 | ) |
| 18 | |
| 19 | func findSchema(t *testing.T, path string) (string, bool) { |
| 20 | schemaFile := filepath.Join(path, "schema.sql") |
| 21 | if _, err := os.Stat(schemaFile); !os.IsNotExist(err) { |
| 22 | return schemaFile, true |
| 23 | } |
| 24 | schemaDir := filepath.Join(path, "schema") |
| 25 | if _, err := os.Stat(schemaDir); !os.IsNotExist(err) { |
| 26 | return schemaDir, true |
| 27 | } |
| 28 | return "", false |
| 29 | } |
| 30 | |
| 31 | func TestExamplesVet(t *testing.T) { |
| 32 | t.Parallel() |