Introduce a gpui2::test
macro
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com> Co-Authored-By: Max Brunsfeld <max@zed.dev> Co-Authored-By: Kyle <kyle@zed.dev>
This commit is contained in:
parent
7ec9cc08c7
commit
43d230cb2d
8 changed files with 366 additions and 53 deletions
|
@ -2,6 +2,7 @@ use proc_macro::TokenStream;
|
|||
|
||||
mod derive_element;
|
||||
mod style_helpers;
|
||||
mod test;
|
||||
|
||||
#[proc_macro]
|
||||
pub fn style_helpers(args: TokenStream) -> TokenStream {
|
||||
|
@ -12,3 +13,8 @@ pub fn style_helpers(args: TokenStream) -> TokenStream {
|
|||
pub fn derive_element(input: TokenStream) -> TokenStream {
|
||||
derive_element::derive_element(input)
|
||||
}
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
||||
test::test(args, function)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue