MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestIntegration_JOINs

Function TestIntegration_JOINs

pkg/sql/integration_test.go:354–377  ·  view source on GitHub ↗

TestIntegration_JOINs tests JOIN support across dialects

(t *testing.T)

Source from the content-addressed store, hash-verified

352
353// TestIntegration_JOINs tests JOIN support across dialects
354func TestIntegration_JOINs(t *testing.T) {
355 projectRoot, _ := filepath.Abs(filepath.Join("..", ".."))
356 files := loadSQLTestFiles(t, projectRoot)
357
358 joinFiles := []SQLTestFile{}
359 for _, file := range files {
360 content := strings.ToUpper(file.Content)
361 if strings.Contains(content, "JOIN") &&
362 (strings.Contains(content, "INNER JOIN") ||
363 strings.Contains(content, "LEFT JOIN") ||
364 strings.Contains(content, "RIGHT JOIN") ||
365 strings.Contains(content, "FULL JOIN") ||
366 strings.Contains(content, "CROSS JOIN")) {
367 joinFiles = append(joinFiles, file)
368 }
369 }
370
371 if len(joinFiles) == 0 {
372 t.Skip("No JOIN test files found")
373 }
374
375 t.Logf("Found %d files with JOINs", len(joinFiles))
376 runTestBatch(t, joinFiles, "JOIN Operations")
377}
378
379// filterFiles filters files by dialect and complexity
380func filterFiles(files []SQLTestFile, dialect string, complexity string) []SQLTestFile {

Callers

nothing calls this directly

Calls 2

loadSQLTestFilesFunction · 0.85
runTestBatchFunction · 0.85

Tested by

no test coverage detected