File: split_tests.c

package info (click to toggle)
libpg-query 17-6.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 32,420 kB
  • sloc: ansic: 171,152; sql: 78,873; ruby: 1,547; makefile: 266; cpp: 221
file content (20 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const char* tests[] = {
  "",
  "",
  "SELECT 1",
  "loc=0,len=8",
  "SELECT 1; SELECT 2",
  "loc=0,len=8;loc=9,len=9",
  "SELECT 1; SELECT 2; SELECT 3",
  "loc=0,len=8;loc=9,len=9;loc=19,len=9",
  "SELECT /* comment with ; */ 1; SELECT 2",
  "loc=0,len=29;loc=30,len=9",
  "SELECT --othercomment with ;\n 1; SELECT 2",
  "loc=0,len=31;loc=32,len=9",
  "CREATE RULE x AS ON SELECT TO tbl DO (SELECT 1; SELECT 2)",
  "loc=0,len=57",
  "SELECT 1;\n;\n-- comment\nSELECT 2;\n;",
  "loc=0,len=8;loc=11,len=20"
};

size_t testsLength = __LINE__ - 4;