File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/catalyst-toolbox/catalyst-toolbox Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ fraction = "0.12"
65
65
tracing.workspace = true
66
66
tracing-subscriber.workspace = true
67
67
vit-servicing-station-lib = { path = " ../../vit-servicing-station/vit-servicing-station-lib" , optional = true }
68
+ proptest.workspace = true
69
+ test-strategy = " 0.2"
68
70
69
71
[dev-dependencies ]
70
72
rand_chacha = " 0.3"
Original file line number Diff line number Diff line change @@ -79,16 +79,17 @@ mod tests {
79
79
} ;
80
80
use serde_json:: json;
81
81
use test_strategy:: proptest;
82
+ use proptest:: arbitrary:: any;
82
83
83
84
use super :: * ;
84
85
85
86
impl Arbitrary for CleanString {
86
87
type Parameters = ( ) ;
87
- type Strategy = Map < StrategyFor < String > , fn ( String ) -> Self > ;
88
-
89
88
fn arbitrary_with ( ( ) : Self :: Parameters ) -> Self :: Strategy {
90
89
any :: < String > ( ) . prop_map ( |s| CleanString ( clean_str ( & s) ) )
91
90
}
91
+
92
+ type Strategy = Map < StrategyFor < String > , fn ( String ) -> Self > ;
92
93
}
93
94
94
95
fn parse ( s : & str ) -> CleanString {
You can’t perform that action at this time.
0 commit comments