1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use quote::quote; use syn::{ItemImpl, parse_quote}; mod util; #[test] fn basic_service() { let item: ItemImpl = parse_quote! { #[ffi] impl Service { fn new() -> ffi::Result<Self, Error> { } } }; insta::assert_snapshot!(expand_ffi!(item)); }