File tree Expand file tree Collapse file tree
crates/vespertide-macro/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ pub(crate) fn vespertide_migration_impl(
197197 } ;
198198 let _models = match load_models_at_compile_time ( ) {
199199 Ok ( models) => models,
200+ #[ cfg( not( tarpaulin_include) ) ]
200201 Err ( e) => {
201202 return syn:: Error :: new (
202203 proc_macro2:: Span :: call_site ( ) ,
@@ -210,6 +211,7 @@ pub(crate) fn vespertide_migration_impl(
210211 let mut baseline_schema = Vec :: new ( ) ;
211212 let mut migration_blocks = Vec :: new ( ) ;
212213
214+ #[ cfg( not( tarpaulin_include) ) ]
213215 for migration in & migrations {
214216 match build_migration_block ( migration, & mut baseline_schema) {
215217 Ok ( block) => migration_blocks. push ( block) ,
@@ -223,6 +225,7 @@ pub(crate) fn vespertide_migration_impl(
223225}
224226
225227/// Zero-runtime migration entry point.
228+ #[ cfg( not( tarpaulin_include) ) ]
226229#[ proc_macro]
227230pub fn vespertide_migration ( input : TokenStream ) -> TokenStream {
228231 vespertide_migration_impl ( input. into ( ) ) . into ( )
You can’t perform that action at this time.
0 commit comments