Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Apr 13, 2024
1 parent af10b90 commit b522b3c
Show file tree
Hide file tree
Showing 7 changed files with 481 additions and 332 deletions.
16 changes: 16 additions & 0 deletions module/core/former/tests/inc/former_tests/a_basic.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#[ allow( unused_imports ) ]
use super::*;

#[ derive( Debug, PartialEq, former::Former ) ]
// #[ derive( Debug, PartialEq, former::Former ) ] #[ debug ]
// #[ derive( Debug, PartialEq ) ] #[ debug ]
pub struct Struct1
{
pub int_1 : i32,
}

// = begin of generated

// = end of generated

include!( "./only_test/basic.rs" );
14 changes: 14 additions & 0 deletions module/core/former/tests/inc/former_tests/a_basic_manual.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#[ allow( unused_imports ) ]
use super::*;

#[ derive( Debug, PartialEq ) ]
pub struct Struct1
{
pub int_1 : i32,
}

// = formed

//

include!( "./only_test/basic.rs" );
8 changes: 6 additions & 2 deletions module/core/former/tests/inc/former_tests/a_primitives.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#[ allow( unused_imports ) ]
use super::*;

#[ derive( Debug, PartialEq, the_module::Former ) ]
#[ derive( Debug, PartialEq, former::Former ) ]
// #[ derive( Debug, PartialEq, former::Former ) ] #[ debug ]
// #[ derive( Debug, PartialEq ) ] #[ debug ]
pub struct Struct1
{
pub int_1 : i32,
Expand All @@ -10,6 +12,8 @@ pub struct Struct1
string_optional_1 : Option< String >,
}

//
// = begin of generated

// = end of generated

include!( "./only_test/primitives.rs" );
18 changes: 0 additions & 18 deletions module/core/former/tests/inc/former_tests/a_primitives_expanded.rs

This file was deleted.

Loading

0 comments on commit b522b3c

Please sign in to comment.