Skip to content

Commit f1d9085

Browse files
neighbor-peacegeistnine01001101CKatu816
committed
test schemaState shape and setSchemaStore
The changes to TableNodeRow's onDelete were moved to TableNodeColumn. Co-authored-by: Michael Costello <[email protected]> Co-authored-by: Steven Geiger <[email protected]> Co-authored-by: Yufa Li <[email protected]> Co-authored-by: Alexander Tu <[email protected]>
1 parent cf6e012 commit f1d9085

File tree

2 files changed

+422
-0
lines changed

2 files changed

+422
-0
lines changed
Lines changed: 369 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,369 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`unit testing schemaStore schemaState shape should match the snapshot 1`] = `
4+
{
5+
"_addColumns": [Function],
6+
"_addHistory": [Function],
7+
"_checkColumnDataDuplicates": [Function],
8+
"_checkColumnValidity": [Function],
9+
"_checkNameValidity": [Function],
10+
"_checkTableValidity": [Function],
11+
"_restrictedMySqlNames": {
12+
"ACCESSIBLE": true,
13+
"ADD": true,
14+
"ALL": true,
15+
"ALTER": true,
16+
"ANALYZE": true,
17+
"AND": true,
18+
"AS": true,
19+
"ASC": true,
20+
"ASENSITIVE": true,
21+
"BEFORE": true,
22+
"BETWEEN": true,
23+
"BIGINT": true,
24+
"BINARY": true,
25+
"BLOB": true,
26+
"BOTH": true,
27+
"BY": true,
28+
"CALL": true,
29+
"CASCADE": true,
30+
"CASE": true,
31+
"CHANGE": true,
32+
"CHAR": true,
33+
"CHARACTER": true,
34+
"CHECK": true,
35+
"COLLATE": true,
36+
"COLUMN": true,
37+
"CONDITION": true,
38+
"CONSTRAINT": true,
39+
"CONTINUE": true,
40+
"CONVERT": true,
41+
"CREATE": true,
42+
"CROSS": true,
43+
"CUBE": true,
44+
"CUME_DIST": true,
45+
"CURRENT_DATE": true,
46+
"CURRENT_TIME": true,
47+
"CURRENT_TIMESTAMP": true,
48+
"CURRENT_USER": true,
49+
"CURSOR": true,
50+
"DATABASE": true,
51+
"DATABASES": true,
52+
"DAY_HOUR": true,
53+
"DAY_MICROSECOND": true,
54+
"DAY_MINUTE": true,
55+
"DAY_SECOND": true,
56+
"DEC": true,
57+
"DECIMAL": true,
58+
"DECLARE": true,
59+
"DEFAULT": true,
60+
"DELAYED": true,
61+
"DELETE": true,
62+
"DENSE_RANK": true,
63+
"DESC": true,
64+
"DESCRIBE": true,
65+
"DETERMINISTIC": true,
66+
"DISTINCT": true,
67+
"DISTINCTROW": true,
68+
"DIV": true,
69+
"DOUBLE": true,
70+
"DROP": true,
71+
"DUAL": true,
72+
"EACH": true,
73+
"ELSE": true,
74+
"ELSEIF": true,
75+
"EMPTY": true,
76+
"ENCLOSED": true,
77+
"ESCAPED": true,
78+
"EXCEPT": true,
79+
"EXISTS": true,
80+
"EXIT": true,
81+
"EXPLAIN": true,
82+
"FALSE": true,
83+
"FETCH": true,
84+
"FIRST_VALUE": true,
85+
"FLOAT": true,
86+
"FLOAT4": true,
87+
"FLOAT8": true,
88+
"FOR": true,
89+
"FORCE": true,
90+
"FOREIGN": true,
91+
"FROM": true,
92+
"FULLTEXT": true,
93+
"FUNCTION": true,
94+
"GENERATED": true,
95+
"GET": true,
96+
"GRANT": true,
97+
"GROUP": true,
98+
"GROUPING": true,
99+
"GROUPS": true,
100+
"HAVING": true,
101+
"HIGH_PRIORITY": true,
102+
"HOUR_MICROSECOND": true,
103+
"HOUR_MINUTE": true,
104+
"HOUR_SECOND": true,
105+
"IF": true,
106+
"IGNORE": true,
107+
"IN": true,
108+
"INDEX": true,
109+
"INFILE": true,
110+
"INNER": true,
111+
"INOUT": true,
112+
"INSENSITIVE": true,
113+
"INSERT": true,
114+
"INT": true,
115+
"INT1": true,
116+
"INT2": true,
117+
"INT3": true,
118+
"INT4": true,
119+
"INT8": true,
120+
"INTEGER": true,
121+
"INTERSECT": true,
122+
"INTERVAL": true,
123+
"INTO": true,
124+
"IO_AFTER_GTIDS": true,
125+
"IO_BEFORE_GTIDS": true,
126+
"IS": true,
127+
"ITERATE": true,
128+
"JOIN": true,
129+
"JSON_TABLE": true,
130+
"KEY": true,
131+
"KEYS": true,
132+
"KILL": true,
133+
"LAG": true,
134+
"LAST_VALUE": true,
135+
"LATERAL": true,
136+
"LEAD": true,
137+
"LEADING": true,
138+
"LEAVE": true,
139+
"LEFT": true,
140+
"LIKE": true,
141+
"LIMIT": true,
142+
"LINEAR": true,
143+
"LINES": true,
144+
"LOAD": true,
145+
"LOCALTIME": true,
146+
"LOCALTIMESTAMP": true,
147+
"LOCK": true,
148+
"LONG": true,
149+
"LONGBLOB": true,
150+
"LONGTEXT": true,
151+
"LOOP": true,
152+
"LOW_PRIORITY": true,
153+
"MASTER_BIND": true,
154+
"MASTER_SSL_VERIFY_SERVER_CERT": true,
155+
"MATCH": true,
156+
"MAXVALUE": true,
157+
"MEDIUMBLOB": true,
158+
"MEDIUMINT": true,
159+
"MEDIUMTEXT": true,
160+
"MIDDLEINT": true,
161+
"MINUTE_MICROSECOND": true,
162+
"MINUTE_SECOND": true,
163+
"MOD": true,
164+
"MODIFIES": true,
165+
"NATURAL": true,
166+
"NOT": true,
167+
"NO_WRITE_TO_BINLOG": true,
168+
"NTH_VALUE": true,
169+
"NTILE": true,
170+
"NULL": true,
171+
"NUMERIC": true,
172+
"OF": true,
173+
"ON": true,
174+
"OPTIMIZE": true,
175+
"OPTIMIZER_COSTS": true,
176+
"OPTION": true,
177+
"OPTIONALLY": true,
178+
"OR": true,
179+
"ORDER": true,
180+
"OUT": true,
181+
"OUTER": true,
182+
"OUTFILE": true,
183+
"OVER": true,
184+
"PARTITION": true,
185+
"PERCENT_RANK": true,
186+
"PRECISION": true,
187+
"PRIMARY": true,
188+
"PROCEDURE": true,
189+
"PURGE": true,
190+
"RANGE": true,
191+
"RANK": true,
192+
"READ": true,
193+
"READS": true,
194+
"READ_WRITE": true,
195+
"REAL": true,
196+
"RECURSIVE": true,
197+
"REFERENCES": true,
198+
"REGEXP": true,
199+
"RELEASE": true,
200+
"RENAME": true,
201+
"REPEAT": true,
202+
"REPLACE": true,
203+
"REQUIRE": true,
204+
"RESIGNAL": true,
205+
"RESTRICT": true,
206+
"RETURN": true,
207+
"REVOKE": true,
208+
"RIGHT": true,
209+
"RLIKE": true,
210+
"ROW": true,
211+
"ROWS": true,
212+
"ROW_NUMBER": true,
213+
"SCHEMA": true,
214+
"SCHEMAS": true,
215+
"SECOND_MICROSECOND": true,
216+
"SELECT": true,
217+
"SENSITIVE": true,
218+
"SEPARATOR": true,
219+
"SET": true,
220+
"SHOW": true,
221+
"SIGNAL": true,
222+
"SMALLINT": true,
223+
"SPATIAL": true,
224+
"SPECIFIC": true,
225+
"SQL": true,
226+
"SQLEXCEPTION": true,
227+
"SQLSTATE": true,
228+
"SQLWARNING": true,
229+
"SQL_BIG_RESULT": true,
230+
"SQL_CALC_FOUND_ROWS": true,
231+
"SQL_SMALL_RESULT": true,
232+
"SSL": true,
233+
"STARTING": true,
234+
"STORED": true,
235+
"STRAIGHT_JOIN": true,
236+
"SYSTEM": true,
237+
"TABLE": true,
238+
"TERMINATED": true,
239+
"THEN": true,
240+
"TINYBLOB": true,
241+
"TINYINT": true,
242+
"TINYTEXT": true,
243+
"TO": true,
244+
"TRAILING": true,
245+
"TRIGGER": true,
246+
"TRUE": true,
247+
"UNDO": true,
248+
"UNION": true,
249+
"UNIQUE": true,
250+
"UNLOCK": true,
251+
"UNSIGNED": true,
252+
"UPDATE": true,
253+
"USAGE": true,
254+
"USE": true,
255+
"USING": true,
256+
"UTC_DATE": true,
257+
"UTC_TIME": true,
258+
"UTC_TIMESTAMP": true,
259+
"VALUES": true,
260+
"VARBINARY": true,
261+
"VARCHAR": true,
262+
"VARCHARACTER": true,
263+
"VARYING": true,
264+
"VIRTUAL": true,
265+
"WHEN": true,
266+
"WHERE": true,
267+
"WHILE": true,
268+
"WINDOW": true,
269+
"WITH": true,
270+
"WRITE": true,
271+
"XOR": true,
272+
"YEAR_MONTH": true,
273+
"ZEROFILL": true,
274+
},
275+
"_restrictedPgNames": {
276+
"ALL": true,
277+
"ANALYSE": true,
278+
"ANALYZE": true,
279+
"AND": true,
280+
"ANY": true,
281+
"ARRAY": true,
282+
"AS": true,
283+
"ASC": true,
284+
"ASYMMETRIC": true,
285+
"BOTH": true,
286+
"CASE": true,
287+
"CAST": true,
288+
"CHECK": true,
289+
"COLLATE": true,
290+
"COLUMN": true,
291+
"CONSTRAINT": true,
292+
"CREATE": true,
293+
"CURRENT_CATALOG": true,
294+
"CURRENT_DATE": true,
295+
"CURRENT_ROLE": true,
296+
"CURRENT_TIME": true,
297+
"CURRENT_TIMESTAMP": true,
298+
"CURRENT_USER": true,
299+
"DEFAULT": true,
300+
"DEFERRABLE": true,
301+
"DESC": true,
302+
"DISTINCT": true,
303+
"DO": true,
304+
"ELSE": true,
305+
"END": true,
306+
"EXCEPT": true,
307+
"FALSE": true,
308+
"FETCH": true,
309+
"FOR": true,
310+
"FOREIGN": true,
311+
"FROM": true,
312+
"GRANT": true,
313+
"GROUP": true,
314+
"HAVING": true,
315+
"IN": true,
316+
"INITIALLY": true,
317+
"INTERSECT": true,
318+
"INTO": true,
319+
"LATERAL": true,
320+
"LEADING": true,
321+
"LIMIT": true,
322+
"LOCALTIME": true,
323+
"LOCALTIMESTAMP": true,
324+
"NOT": true,
325+
"NULL": true,
326+
"OFFSET": true,
327+
"ON": true,
328+
"ONLY": true,
329+
"OR": true,
330+
"ORDER": true,
331+
"PLACING": true,
332+
"PRIMARY": true,
333+
"REFERENCES": true,
334+
"RETURNING": true,
335+
"SELECT": true,
336+
"SESSION_USER": true,
337+
"SOME": true,
338+
"SYMMETRIC": true,
339+
"TABLE": true,
340+
"THEN": true,
341+
"TO": true,
342+
"TRAILING": true,
343+
"UNION": true,
344+
"UNIQUE": true,
345+
"USER": true,
346+
"USING": true,
347+
"VARIADIC": true,
348+
"WHEN": true,
349+
"WHERE": true,
350+
"WINDOW": true,
351+
"WITH": true,
352+
"true": true,
353+
},
354+
"addColumnSchema": [Function],
355+
"addForeignKeySchema": [Function],
356+
"addTableSchema": [Function],
357+
"deleteColumnSchema": [Function],
358+
"deleteTableSchema": [Function],
359+
"history": [
360+
{},
361+
],
362+
"historyCounter": 0,
363+
"redoHandler": [Function],
364+
"schemaStore": {},
365+
"setSchemaStore": [Function],
366+
"system": "PostgreSQL",
367+
"undoHandler": [Function],
368+
}
369+
`;

0 commit comments

Comments
 (0)