forked from sqlancer/sqlancer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCODDTestBase.java
More file actions
25 lines (22 loc) · 837 Bytes
/
CODDTestBase.java
File metadata and controls
25 lines (22 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package sqlancer.common.oracle;
import sqlancer.Main.StateLogger;
import sqlancer.MainOptions;
import sqlancer.SQLConnection;
import sqlancer.SQLGlobalState;
import sqlancer.common.query.ExpectedErrors;
public abstract class CODDTestBase<S extends SQLGlobalState<?, ?>> implements TestOracle<S> {
protected final S state;
protected final ExpectedErrors errors = new ExpectedErrors();
protected final StateLogger logger;
protected final MainOptions options;
protected final SQLConnection con;
protected String auxiliaryQueryString;
protected String foldedQueryString;
protected String originalQueryString;
public CODDTestBase(S state) {
this.state = state;
this.con = state.getConnection();
this.logger = state.getLogger();
this.options = state.getOptions();
}
}