File tree Expand file tree Collapse file tree 7 files changed +19
-0
lines changed Expand file tree Collapse file tree 7 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -212,9 +212,12 @@ where
212
212
}
213
213
}
214
214
215
+ /// Allows prepending of values to a tuple
215
216
pub trait Prepend < T > : TupleList {
216
217
type PreprendResult : TupleList ;
217
218
219
+ /// Prepend a value to this tuple, returning a new tuple with prepended value.
220
+ #[ must_use]
218
221
fn prepend ( self , value : T ) -> ( T , Self :: PreprendResult ) ;
219
222
}
220
223
@@ -230,9 +233,12 @@ where
230
233
}
231
234
}
232
235
236
+ /// Append to a `TupeList`
233
237
pub trait Append < T > : TupleList {
234
238
type AppendResult : TupleList ;
235
239
240
+ /// Append Value and return the tuple
241
+ #[ must_use]
236
242
fn append ( self , value : T ) -> Self :: AppendResult ;
237
243
}
238
244
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use core::marker::PhantomData;
15
15
use hashbrown:: { HashMap , HashSet } ;
16
16
use serde:: { Deserialize , Serialize } ;
17
17
18
+ /// Default probability to skip the non-favored values
18
19
pub const DEFAULT_SKIP_NOT_FAV_PROB : u64 = 95 ;
19
20
20
21
/// A testcase metadata saying if a testcase is favored
Original file line number Diff line number Diff line change 53
53
C : Corpus < I > ,
54
54
I : Input ,
55
55
{
56
+ /// Creates a new `QueueCorpusScheduler`
56
57
pub fn new ( ) -> Self {
57
58
Self {
58
59
phantom : PhantomData ,
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ where
108
108
severity_level : LogSeverity ,
109
109
/// The message
110
110
message : String ,
111
+ /// `PhantomData`
111
112
phantom : PhantomData < I > ,
112
113
} ,
113
114
/*/// A custom type
Original file line number Diff line number Diff line change @@ -16,15 +16,21 @@ use crate::{
16
16
17
17
use alloc:: boxed:: Box ;
18
18
19
+ /// A `CustomExitKind` for exits that do not fit the default `ExitKind`
19
20
pub trait CustomExitKind : core:: fmt:: Debug + SerdeAny + ' static { }
20
21
21
22
/// How an execution finished.
22
23
#[ derive( Debug ) ]
23
24
pub enum ExitKind {
25
+ /// The run exited normally.
24
26
Ok ,
27
+ /// The run resulted in a target crash.
25
28
Crash ,
29
+ /// The run hit an out of memory error.
26
30
Oom ,
31
+ /// The run timed out
27
32
Timeout ,
33
+ /// The run resulted in a custom `ExitKind`.
28
34
Custom ( Box < dyn CustomExitKind > ) ,
29
35
}
30
36
Original file line number Diff line number Diff line change 54
54
E : Executor < I > ,
55
55
I : Input ,
56
56
{
57
+ /// Create a new `TimeoutExecutor`, wrapping the given `executor` and checking for timeouts.
58
+ /// This should usually be used for `InProcess` fuzzing.
57
59
pub fn new ( executor : E , exec_tmout : Duration ) -> Self {
58
60
Self {
59
61
executor,
62
64
}
63
65
}
64
66
67
+ /// Retrieve the inner `Executor` that is wrapped by this `TimeoutExecutor`.
65
68
pub fn inner ( & mut self ) -> & mut E {
66
69
& mut self . executor
67
70
}
Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ where
237
237
EM : EventManager < I , S > ,
238
238
I : Input ,
239
239
{
240
+ /// Create a new `StdFuzzer` with standard behavior.
240
241
pub fn new ( stages : ST ) -> Self {
241
242
Self {
242
243
stages,
You can’t perform that action at this time.
0 commit comments