PostgreSQL Source Code  git master
isolationtester.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * isolationtester.h
4  * include file for isolation tests
5  *
6  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * IDENTIFICATION
10  * src/test/isolation/isolationtester.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef ISOLATIONTESTER_H
15 #define ISOLATIONTESTER_H
16 
17 typedef struct Session Session;
18 typedef struct Step Step;
19 
20 struct Session
21 {
22  char *name;
23  char *setupsql;
24  char *teardownsql;
26  int nsteps;
27 };
28 
29 struct Step
30 {
31  int session;
32  bool used;
33  char *name;
34  char *sql;
35  char *errormsg;
36 };
37 
38 typedef struct
39 {
40  int nsteps;
41  char **stepnames;
42 } Permutation;
43 
44 typedef struct
45 {
46  char **setupsqls;
48  char *teardownsql;
50  int nsessions;
54  int nallsteps;
55 } TestSpec;
56 
57 extern TestSpec parseresult;
58 
59 extern int spec_yyparse(void);
60 
61 extern int spec_yylex(void);
62 extern void spec_yyerror(const char *str);
63 
64 #endif /* ISOLATIONTESTER_H */
int spec_yylex(void)
Session ** sessions
char ** setupsqls
bool used
char * teardownsql
Permutation ** permutations
char * setupsql
char * name
int npermutations
char * name
char * teardownsql
char ** stepnames
char * errormsg
void spec_yyerror(const char *str)
Step ** steps
char * sql
Step ** allsteps
int session
TestSpec parseresult
int spec_yyparse(void)