mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
a whole bunch of tests for the method macros
This commit is contained in:
parent
4bf0bd7b09
commit
e05f9bb963
23 changed files with 473 additions and 28 deletions
|
@ -122,13 +122,13 @@ pub fn change(attr : TokenStream, item : TokenStream) -> TokenStream
|
|||
}
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn delete_all(attr : TokenStream, item : TokenStream) -> TokenStream
|
||||
pub fn remove_all(attr : TokenStream, item : TokenStream) -> TokenStream
|
||||
{
|
||||
expand_macro(attr, item, |attr, item| expand_method(Method::RemoveAll, attr, item))
|
||||
}
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn delete(attr : TokenStream, item : TokenStream) -> TokenStream
|
||||
pub fn remove(attr : TokenStream, item : TokenStream) -> TokenStream
|
||||
{
|
||||
expand_macro(attr, item, |attr, item| expand_method(Method::Remove, attr, item))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue