@@ -131,15 +131,15 @@ mod test_rules {
131131 /// -- remove nullability
132132 /// ```
133133 #[ test]
134- fn test_docs_example_bad ( ) {
134+ fn docs_example_bad ( ) {
135135 let bad_sql = r#"
136136-- instead of
137137ALTER TABLE "core_recipe" ADD COLUMN "foo" integer DEFAULT 10;
138138"# ;
139139 assert_debug_snapshot ! ( lint_sql( bad_sql, None ) ) ;
140140 }
141141 #[ test]
142- fn test_docs_example_ok ( ) {
142+ fn docs_example_ok ( ) {
143143 let ok_sql = r#"
144144-- use
145145ALTER TABLE "core_recipe" ADD COLUMN "foo" integer;
@@ -151,7 +151,7 @@ ALTER TABLE "core_recipe" ALTER COLUMN "foo" SET DEFAULT 10;
151151 }
152152
153153 #[ test]
154- fn test_default_integer_ok ( ) {
154+ fn default_integer_ok ( ) {
155155 let ok_sql = r#"
156156-- NON-VOLATILE
157157ALTER TABLE "core_recipe" ADD COLUMN "foo" integer DEFAULT 10;
@@ -162,7 +162,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" integer DEFAULT 10;
162162 }
163163
164164 #[ test]
165- fn test_default_uuid_err ( ) {
165+ fn default_uuid_err ( ) {
166166 let bad_sql = r#"
167167-- VOLATILE
168168ALTER TABLE "core_recipe" ADD COLUMN "foo" integer DEFAULT uuid();
@@ -173,7 +173,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" integer DEFAULT uuid();
173173 }
174174
175175 #[ test]
176- fn test_default_volatile_func_err ( ) {
176+ fn default_volatile_func_err ( ) {
177177 let bad_sql = r#"
178178-- VOLATILE
179179ALTER TABLE "core_recipe" ADD COLUMN "foo" boolean DEFAULT random();
@@ -182,7 +182,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" boolean DEFAULT random();
182182 assert_debug_snapshot ! ( lint_sql( bad_sql, pg_version_11) ) ;
183183 }
184184 #[ test]
185- fn test_default_bool_ok ( ) {
185+ fn default_bool_ok ( ) {
186186 let ok_sql = r#"
187187-- NON-VOLATILE
188188ALTER TABLE "core_recipe" ADD COLUMN "foo" boolean DEFAULT true;
@@ -191,7 +191,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" boolean DEFAULT true;
191191 assert_debug_snapshot ! ( lint_sql( ok_sql, pg_version_11) ) ;
192192 }
193193 #[ test]
194- fn test_default_str_ok ( ) {
194+ fn default_str_ok ( ) {
195195 let ok_sql = r#"
196196-- NON-VOLATILE
197197ALTER TABLE "core_recipe" ADD COLUMN "foo" text DEFAULT 'some-str';
@@ -200,7 +200,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" text DEFAULT 'some-str';
200200 assert_debug_snapshot ! ( lint_sql( ok_sql, pg_version_11) ) ;
201201 }
202202 #[ test]
203- fn test_default_enum_ok ( ) {
203+ fn default_enum_ok ( ) {
204204 let ok_sql = r#"
205205-- NON-VOLATILE
206206ALTER TABLE "core_recipe" ADD COLUMN "foo" some_enum_type DEFAULT 'my-enum-variant';
@@ -209,7 +209,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" some_enum_type DEFAULT 'my-enum-varia
209209 assert_debug_snapshot ! ( lint_sql( ok_sql, pg_version_11) ) ;
210210 }
211211 #[ test]
212- fn test_default_jsonb_ok ( ) {
212+ fn default_jsonb_ok ( ) {
213213 let ok_sql = r#"
214214-- NON-VOLATILE
215215ALTER TABLE "core_recipe" ADD COLUMN "foo" jsonb DEFAULT '{}'::jsonb;
@@ -218,7 +218,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" jsonb DEFAULT '{}'::jsonb;
218218 assert_debug_snapshot ! ( lint_sql( ok_sql, pg_version_11) ) ;
219219 }
220220 #[ test]
221- fn test_default_arbitrary_func_err ( ) {
221+ fn default_arbitrary_func_err ( ) {
222222 let ok_sql = r#"
223223-- NON-VOLATILE
224224ALTER TABLE "core_recipe" ADD COLUMN "foo" jsonb DEFAULT myjsonb();
@@ -227,7 +227,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" jsonb DEFAULT myjsonb();
227227 assert_debug_snapshot ! ( lint_sql( ok_sql, pg_version_11) ) ;
228228 }
229229 #[ test]
230- fn test_default_random_with_args_err ( ) {
230+ fn default_random_with_args_err ( ) {
231231 let ok_sql = r#"
232232-- NON-VOLATILE
233233ALTER TABLE "core_recipe" ADD COLUMN "foo" timestamptz DEFAULT now(123);
@@ -236,7 +236,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" timestamptz DEFAULT now(123);
236236 assert_debug_snapshot ! ( lint_sql( ok_sql, pg_version_11) ) ;
237237 }
238238 #[ test]
239- fn test_default_now_func_ok ( ) {
239+ fn default_now_func_ok ( ) {
240240 let ok_sql = r#"
241241-- NON-VOLATILE
242242ALTER TABLE "core_recipe" ADD COLUMN "foo" timestamptz DEFAULT now();
@@ -245,7 +245,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" timestamptz DEFAULT now();
245245 assert_debug_snapshot ! ( lint_sql( ok_sql, pg_version_11) ) ;
246246 }
247247 #[ test]
248- fn test_add_numbers_ok ( ) {
248+ fn add_numbers_ok ( ) {
249249 // This should be okay, but we don't handle expressions like this at the moment.
250250 let ok_sql = r"
251251alter table account_metadata add column blah integer default 2 + 2;
@@ -255,7 +255,7 @@ alter table account_metadata add column blah integer default 2 + 2;
255255 }
256256
257257 #[ test]
258- fn test_generated_stored ( ) {
258+ fn generated_stored ( ) {
259259 let bad_sql = r"
260260 ALTER TABLE foo
261261 ADD COLUMN bar numeric GENERATED ALWAYS AS (bar + baz) STORED;
0 commit comments