-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
446 additions
and
663 deletions.
There are no files selected for viewing
394 changes: 0 additions & 394 deletions
394
module/core/former/tests/inc/former_tests/a_containers_with_subformer_implicit.rs
This file was deleted.
Oops, something went wrong.
512 changes: 294 additions & 218 deletions
512
module/core/former/tests/inc/former_tests/a_containers_with_subformer_manual.rs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
module/core/former/tests/inc/former_tests/subformer_implicit_container.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#![ allow( dead_code ) ] | ||
|
||
use super::*; | ||
|
||
/// Parameter description. | ||
#[ derive( Debug, Default, PartialEq, the_module::Former ) ] | ||
pub struct Child | ||
{ | ||
name : String, | ||
is_mandatory : bool, | ||
} | ||
|
||
/// Parent required for the template. | ||
#[ derive( Debug, Default, PartialEq, the_module::Former ) ] | ||
// #[ derive( Debug, Default, PartialEq, the_module::Former ) ] #[ debug ] | ||
// #[ derive( Debug, Default, PartialEq ) ] | ||
pub struct Parent | ||
{ | ||
#[ container( former::VectorDefinition ) ] | ||
#[ subform( name : child ) ] | ||
// #[ setter( false ) ] | ||
children : Vec< Child >, | ||
} | ||
|
||
// | ||
|
||
// xxx | ||
// include!( "./only_test/subformer_subform.rs" ); | ||
include!( "./only_test/subformer_container.rs" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.