AUDIO
Source snapshot · 11 November 2026

Subtractive synth regression tests

examples/tutorials/tests/subtractive.rs · 153 source lines

Read the chapters in source order. Select a numbered source line to expand its explanation; the line numbers and code match this snapshot exactly.

cargo test -p ravet-examples --test subtractive --no-default-features --locked
Chapters
  1. Build short deterministic instrument blocks lines 1–28
  2. Check envelope targets and release completion lines 29–51
  3. Compare waveforms and low-pass behavior lines 52–97
  4. Check patch validation and state preservation lines 98–135
  5. Measure callbacks and fixed-patch changes lines 136–153

Build short deterministic instrument blocks

Helpers construct validated MIDI events, a rate-matched synth patch and a no-input output block. Fixed arrays make the measured processing region independent of heap-owned fixture construction.

1use ravet_examples::synth::{DEFAULT_VALUES, SubtractiveSynth, SynthPatch};

Bring these module/type names into scope for “Build short deterministic instrument blocks”; the surrounding chapter explains their responsibilities.

Link to line 1
2use ravet_foundation::{

Bring these module/type names into scope for “Build short deterministic instrument blocks”; the surrounding chapter explains their responsibilities.

Link to line 2
3 AudioBuffer, AudioLayout, Event, EventData, MidiMessage, ProcessBlock, ProcessConfig,

Supply these names as the remaining imports, arguments or fields of the surrounding declaration.

Link to line 3
4 ProcessStatus, Processor, Transport,

Supply these names as the remaining imports, arguments or fields of the surrounding declaration.

Link to line 4
5};

Close the surrounding scope, value or argument list in “Build short deterministic instrument blocks”.

Link to line 5
6fn event(frame_offset: usize, bytes: &[u8]) -> Event {

Define event. Helpers construct validated MIDI events, a rate-matched synth patch and a no-input output block. Fixed arrays make the measured processing region independent of heap-owned fixture construction.

Link to line 6
7 Event {

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Build short deterministic instrument blocks” explanation above.

Link to line 7
8 frame_offset,

Supply these names as the remaining imports, arguments or fields of the surrounding declaration.

Link to line 8
9 data: EventData::Midi(MidiMessage::from_bytes(bytes).unwrap()),

Typed event payload; timing is kept separately in frame_offset.

Link to line 9
10 }

Close the surrounding scope, value or argument list in “Build short deterministic instrument blocks”.

Link to line 10
11}

Close the surrounding scope, value or argument list in “Build short deterministic instrument blocks”.

Link to line 11
12fn synth(values: [f32; 9]) -> SubtractiveSynth {

Define synth. Helpers construct validated MIDI events, a rate-matched synth patch and a no-input output block. Fixed arrays make the measured processing region independent of heap-owned fixture construction.

Link to line 12
13 let mut synth = SubtractiveSynth::new();

Bind mutable synth to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 13
14 synth

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Build short deterministic instrument blocks” explanation above.

Link to line 14
15 .set_patch(&SynthPatch::new(48_000., values).unwrap())

Call the displayed operation with these arguments as the next step in “Build short deterministic instrument blocks”. The chapter describes its role and validation.

Link to line 15
16 .unwrap();

Call the displayed operation with these arguments as the next step in “Build short deterministic instrument blocks”. The chapter describes its role and validation.

Link to line 16
17 synth

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Build short deterministic instrument blocks” explanation above.

Link to line 17
18 .prepare(ProcessConfig::new(48_000., 1024, 128, AudioLayout::MONO_INSTRUMENT).unwrap())

Call the displayed operation with these arguments as the next step in “Build short deterministic instrument blocks”. The chapter describes its role and validation.

Link to line 18
19 .unwrap();

Call the displayed operation with these arguments as the next step in “Build short deterministic instrument blocks”. The chapter describes its role and validation.

Link to line 19
20 synth

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Build short deterministic instrument blocks” explanation above.

Link to line 20
21}

Close the surrounding scope, value or argument list in “Build short deterministic instrument blocks”.

Link to line 21
22fn process(synth: &mut SubtractiveSynth, output: &mut [f32], events: &[Event]) -> ProcessStatus {

Define process. Helpers construct validated MIDI events, a rate-matched synth patch and a no-input output block. Fixed arrays make the measured processing region independent of heap-owned fixture construction.

Link to line 22
23 let frames = output.len();

Bind frames to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 23
24 let mut views = [output];

Bind mutable views to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 24
25 let audio = AudioBuffer::separate(&[], &mut views, frames).unwrap();

Borrow distinct input/output slices. An instrument supplies an empty input slice; output storage already belongs to the caller.

Link to line 25
26 synth.process(&mut ProcessBlock::new(audio, events, Transport::default()))

Combine borrowed audio, the active input-event slice and explicit transport into one processing view.

Link to line 26
27}

Close the surrounding scope, value or argument list in “Build short deterministic instrument blocks”.

Link to line 27
28#[test]

Apply this Rust attribute to the following item. cfg selects which target/feature/test build contains it; derive generates the named trait implementations.

Link to line 28

Check envelope targets and release completion

Use known timings to test attack/decay/sustain and release, then ensure the voice is finished when its envelope reaches Idle. One shared envelope drives both VCA and filter excursion.

29fn shared_adsr_hits_targets_and_release_terminates_audio() {

Define shared_adsr_hits_targets_and_release_terminates_audio. Use known timings to test attack/decay/sustain and release, then ensure the voice is finished when its envelope reaches Idle. One shared envelope drives both VCA and filter excursion.

Link to line 29
30 let mut values = DEFAULT_VALUES;

Bind mutable values to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 30
31 values[5] = 1.;

Assign the computed value to values[5]. The right-hand expression supplies the new value for this step.

Link to line 31
32 values[6] = 1.;

Assign the computed value to values[6]. The right-hand expression supplies the new value for this step.

Link to line 32
33 values[7] = 0.5;

Assign the computed value to values[7]. The right-hand expression supplies the new value for this step.

Link to line 33
34 values[8] = 1.;

Assign the computed value to values[8]. The right-hand expression supplies the new value for this step.

Link to line 34
35 let mut synth = synth(values);

Bind mutable synth to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 35
36 let mut output = [0.; 48];

Bind mutable output to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 36
37 assert_eq!(

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 37
38 process(&mut synth, &mut output, &[event(0, &[0x90, 69, 127])]),

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Check envelope targets and release completion” explanation above.

Link to line 38
39 ProcessStatus::Continue

Represent a successfully processed block. The offline renderer treats any different status as a failed rendering session.

Link to line 39
40 );

Close the current expression or scope; no additional processing operation occurs on this line.

Link to line 40
41 assert_eq!(synth.envelope_levels()[0], 1.);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 41
42 process(&mut synth, &mut output, &[]);

Call the displayed operation with these arguments as the next step in “Check envelope targets and release completion”. The chapter describes its role and validation.

Link to line 42
43 assert_eq!(synth.envelope_levels()[0], 0.5);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 43
44 process(&mut synth, &mut output, &[event(0, &[0x80, 69, 0])]);

Call the displayed operation with these arguments as the next step in “Check envelope targets and release completion”. The chapter describes its role and validation.

Link to line 44
45 assert_eq!(synth.envelope_levels()[0], 0.);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 45
46 assert_eq!(output[47], 0.);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 46
47 output.fill(9.);

Call the displayed operation with these arguments as the next step in “Check envelope targets and release completion”. The chapter describes its role and validation.

Link to line 47
48 process(&mut synth, &mut output, &[]);

Call the displayed operation with these arguments as the next step in “Check envelope targets and release completion”. The chapter describes its role and validation.

Link to line 48
49 assert_eq!(output, [0.; 48]);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 49
50}

Close the surrounding scope, value or argument list in “Check envelope targets and release completion”.

Link to line 50
51#[test]

Apply this Rust attribute to the following item. cfg selects which target/feature/test build contains it; derive generates the named trait implementations.

Link to line 51

Compare waveforms and low-pass behavior

Exercise all four waveform selections and compare measured energy for cutoff choices. The triangle may alias; these offline energy checks do not establish an anti-aliasing or headroom guarantee.

52fn all_waveforms_sound_and_vcf_cutoff_attenuates_high_frequency() {

Define all_waveforms_sound_and_vcf_cutoff_attenuates_high_frequency. Exercise all four waveform selections and compare measured energy for cutoff choices. The triangle may alias; these offline energy checks do not establish an anti-aliasing or headroom guarantee.

Link to line 52
53 let mut outputs = Vec::new();

Bind mutable outputs to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 53
54 for wave in 0..4 {

Evaluate this condition or visit this range in source order. The statements in the following scope implement “Compare waveforms and low-pass behavior”.

Link to line 54
55 let mut values = DEFAULT_VALUES;

Bind mutable values to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 55
56 values[0] = wave as f32;

Assign the computed value to values[0]. The right-hand expression supplies the new value for this step.

Link to line 56
57 values[2] = 18_000.;

Assign the computed value to values[2]. The right-hand expression supplies the new value for this step.

Link to line 57
58 values[4] = 0.;

Disable the envelope’s positive filter excursion for this fixture. Its VCA envelope still controls amplitude.

Link to line 58
59 values[5] = 0.;

Assign the computed value to values[5]. The right-hand expression supplies the new value for this step.

Link to line 59
60 values[6] = 0.;

Assign the computed value to values[6]. The right-hand expression supplies the new value for this step.

Link to line 60
61 values[7] = 1.;

Assign the computed value to values[7]. The right-hand expression supplies the new value for this step.

Link to line 61
62 let mut s = synth(values);

Bind mutable s to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 62
63 let mut output = [0.; 1024];

Bind mutable output to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 63
64 process(&mut s, &mut output, &[event(0, &[0x90, 93, 127])]);

Call the displayed operation with these arguments as the next step in “Compare waveforms and low-pass behavior”. The chapter describes its role and validation.

Link to line 64
65 assert!(output.iter().all(|v| v.is_finite()));

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 65
66 assert!(output.iter().any(|v| v.abs() > 0.01));

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 66
67 outputs.push(output);

Append the supplied item to this owned collection. UI/fixture collections grow outside the audio callback.

Link to line 67
68 }

Close the surrounding scope, value or argument list in “Compare waveforms and low-pass behavior”.

Link to line 68
69 for i in 0..4 {

Evaluate this condition or visit this range in source order. The statements in the following scope implement “Compare waveforms and low-pass behavior”.

Link to line 69
70 for j in i + 1..4 {

Evaluate this condition or visit this range in source order. The statements in the following scope implement “Compare waveforms and low-pass behavior”.

Link to line 70
71 assert!(

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 71
72 outputs[i]

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Compare waveforms and low-pass behavior” explanation above.

Link to line 72
73 .iter()

Borrow collection entries for iteration without moving or copying the whole collection.

Link to line 73
74 .zip(outputs[j])

Pair each entry with the corresponding entry in the second sequence. Iteration ends when either sequence ends.

Link to line 74
75 .any(|(a, b)| (a - b).abs() > 0.01)

Return true if any entry satisfies this predicate; stop at the first match.

Link to line 75
76 );

Close the current expression or scope; no additional processing operation occurs on this line.

Link to line 76
77 }

Close the surrounding scope, value or argument list in “Compare waveforms and low-pass behavior”.

Link to line 77
78 }

Close the surrounding scope, value or argument list in “Compare waveforms and low-pass behavior”.

Link to line 78
79 let energy = |cutoff: f32| {

Bind energy to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 79
80 let mut values = DEFAULT_VALUES;

Bind mutable values to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 80
81 values[0] = 0.;

Select the sine waveform for this deterministic rendering fixture. The live default patch selects saw.

Link to line 81
82 values[2] = cutoff;

Assign the computed value to values[2]. The right-hand expression supplies the new value for this step.

Link to line 82
83 values[4] = 0.;

Disable the envelope’s positive filter excursion for this fixture. Its VCA envelope still controls amplitude.

Link to line 83
84 values[5] = 0.;

Assign the computed value to values[5]. The right-hand expression supplies the new value for this step.

Link to line 84
85 values[6] = 0.;

Assign the computed value to values[6]. The right-hand expression supplies the new value for this step.

Link to line 85
86 values[7] = 1.;

Assign the computed value to values[7]. The right-hand expression supplies the new value for this step.

Link to line 86
87 let mut s = synth(values);

Bind mutable s to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 87
88 let mut out = [0.; 1024];

Bind mutable out to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 88
89 process(&mut s, &mut out, &[event(0, &[0x90, 93, 127])]);

Call the displayed operation with these arguments as the next step in “Compare waveforms and low-pass behavior”. The chapter describes its role and validation.

Link to line 89
90 for _ in 0..4 {

Evaluate this condition or visit this range in source order. The statements in the following scope implement “Compare waveforms and low-pass behavior”.

Link to line 90
91 process(&mut s, &mut out, &[]);

Call the displayed operation with these arguments as the next step in “Compare waveforms and low-pass behavior”. The chapter describes its role and validation.

Link to line 91
92 }

Close the surrounding scope, value or argument list in “Compare waveforms and low-pass behavior”.

Link to line 92
93 out.iter().map(|v| f64::from(*v).powi(2)).sum::<f64>()

Borrow collection entries for iteration without moving or copying the whole collection.

Link to line 93
94 };

Close the surrounding scope, value or argument list in “Compare waveforms and low-pass behavior”.

Link to line 94
95 assert!(energy(100.) < energy(10_000.) * 0.001);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 95
96}

Close the surrounding scope, value or argument list in “Compare waveforms and low-pass behavior”.

Link to line 96
97#[test]

Apply this Rust attribute to the following item. cfg selects which target/feature/test build contains it; derive generates the named trait implementations.

Link to line 97

Check patch validation and state preservation

Reject invalid controls and active-rate mismatches before mutation. Check note-on latching for ADSR and complete invalid-block rejection, ensuring a fault does not advance the existing voice history.

98fn patch_validation_latching_and_whole_block_fault_preserve_history() {

Define patch_validation_latching_and_whole_block_fault_preserve_history. Reject invalid controls and active-rate mismatches before mutation. Check note-on latching for ADSR and complete invalid-block rejection, ensuring a fault does not advance the existing voice history.

Link to line 98
99 let mut values = DEFAULT_VALUES;

Bind mutable values to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 99
100 values[5] = 10.;

Assign the computed value to values[5]. The right-hand expression supplies the new value for this step.

Link to line 100
101 values[6] = 0.;

Assign the computed value to values[6]. The right-hand expression supplies the new value for this step.

Link to line 101
102 values[7] = 1.;

Assign the computed value to values[7]. The right-hand expression supplies the new value for this step.

Link to line 102
103 let mut s = synth(values);

Bind mutable s to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 103
104 let mut out = [0.; 48];

Bind mutable out to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 104
105 process(&mut s, &mut out, &[event(0, &[0x90, 69, 100])]);

Call the displayed operation with these arguments as the next step in “Check patch validation and state preservation”. The chapter describes its role and validation.

Link to line 105
106 let level = s.envelope_levels()[0];

Bind level to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 106
107 assert!(level > 0.09 && level < 0.11);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 107
108 let mut changed = values;

Bind mutable changed to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 108
109 changed[0] = 2.;

Assign the computed value to changed[0]. The right-hand expression supplies the new value for this step.

Link to line 109
110 changed[5] = 0.;

Assign the computed value to changed[5]. The right-hand expression supplies the new value for this step.

Link to line 110
111 s.set_patch(&SynthPatch::new(48_000., changed).unwrap())

Call the displayed operation with these arguments as the next step in “Check patch validation and state preservation”. The chapter describes its role and validation.

Link to line 111
112 .unwrap();

Call the displayed operation with these arguments as the next step in “Check patch validation and state preservation”. The chapter describes its role and validation.

Link to line 112
113 process(&mut s, &mut out, &[]);

Call the displayed operation with these arguments as the next step in “Check patch validation and state preservation”. The chapter describes its role and validation.

Link to line 113
114 assert!(s.envelope_levels()[0] > 0.19 && s.envelope_levels()[0] < 0.21);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 114
115 let before = s.envelope_levels();

Bind before to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 115
116 out.fill(8.);

Call the displayed operation with these arguments as the next step in “Check patch validation and state preservation”. The chapter describes its role and validation.

Link to line 116
117 assert!(matches!(

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 117
118 process(&mut s, &mut out, &[event(48, &[0x90, 60, 100])]),

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Check patch validation and state preservation” explanation above.

Link to line 118
119 ProcessStatus::Fault(_)

Define or initialize ProcessStatus with the displayed type/value. Its ownership and use are described in “Check patch validation and state preservation”.

Link to line 119
120 ));

Close the current expression or scope; no additional processing operation occurs on this line.

Link to line 120
121 assert_eq!(out, [0.; 48]);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 121
122 assert_eq!(s.envelope_levels(), before);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 122
123 process(&mut s, &mut out, &[event(0, &[0x90, 72, 100])]);

Call the displayed operation with these arguments as the next step in “Check patch validation and state preservation”. The chapter describes its role and validation.

Link to line 123
124 assert_eq!(s.envelope_levels()[1], 1.);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 124
125 assert!(

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 125
126 s.set_patch(&SynthPatch::new(96_000., values).unwrap())

Call the displayed operation with these arguments as the next step in “Check patch validation and state preservation”. The chapter describes its role and validation.

Link to line 126
127 .is_err()

Call the displayed operation with these arguments as the next step in “Check patch validation and state preservation”. The chapter describes its role and validation.

Link to line 127
128 );

Close the current expression or scope; no additional processing operation occurs on this line.

Link to line 128
129 for (index, value) in [(0, 0.5), (2, f32::NAN), (3, 9.), (5, -1.)] {

Evaluate this condition or visit this range in source order. The statements in the following scope implement “Check patch validation and state preservation”.

Link to line 129
130 let mut bad = values;

Bind mutable bad to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 130
131 bad[index] = value;

Assign the computed value to bad[index]. The right-hand expression supplies the new value for this step.

Link to line 131
132 assert!(SynthPatch::new(48_000., bad).is_err());

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 132
133 }

Close the surrounding scope, value or argument list in “Check patch validation and state preservation”.

Link to line 133
134}

Close the surrounding scope, value or argument list in “Check patch validation and state preservation”.

Link to line 134
135#[test]

Apply this Rust attribute to the following item. cfg selects which target/feature/test build contains it; derive generates the named trait implementations.

Link to line 135

Measure callbacks and fixed-patch changes

Prepare patch/voice resources before measurement. Repeated processing, set_patch and reset run in the measured region and must cause no heap operations. The test deliberately includes held-note state changes.

136fn prepared_synthesis_patch_changes_and_reset_have_no_heap_operations() {

Define prepared_synthesis_patch_changes_and_reset_have_no_heap_operations. Prepare patch/voice resources before measurement. Repeated processing, set_patch and reset run in the measured region and must cause no heap operations. The test deliberately includes held-note state changes.

Link to line 136
137 let mut s = synth(DEFAULT_VALUES);

Bind mutable s to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 137
138 let patch = SynthPatch::new(48_000., DEFAULT_VALUES).unwrap();

Bind patch to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 138
139 let mut out = [0.; 512];

Bind mutable out to the expression on this and any following continuation lines. The chapter above explains how this intermediate value is used.

Link to line 139
140 let counts = allocation_counter::measure(|| {

Measure heap activity only in the enclosed processing/changes/reset region; preparation and assertions are outside it.

Link to line 140
141 for _ in 0..1000 {

Evaluate this condition or visit this range in source order. The statements in the following scope implement “Measure callbacks and fixed-patch changes”.

Link to line 141
142 s.set_patch(&patch).unwrap();

Call the displayed operation with these arguments as the next step in “Measure callbacks and fixed-patch changes”. The chapter describes its role and validation.

Link to line 142
143 process(

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Measure callbacks and fixed-patch changes” explanation above.

Link to line 143
144 &mut s,

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Measure callbacks and fixed-patch changes” explanation above.

Link to line 144
145 &mut out,

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Measure callbacks and fixed-patch changes” explanation above.

Link to line 145
146 &[event(0, &[0x90, 60, 100]), event(256, &[0x80, 60, 0])],

Continue the surrounding value or expression with this exact operand. Read it together with the preceding statement and the “Measure callbacks and fixed-patch changes” explanation above.

Link to line 146
147 );

Close the current expression or scope; no additional processing operation occurs on this line.

Link to line 147
148 s.reset();

Call the displayed operation with these arguments as the next step in “Measure callbacks and fixed-patch changes”. The chapter describes its role and validation.

Link to line 148
149 }

Close the surrounding scope, value or argument list in “Measure callbacks and fixed-patch changes”.

Link to line 149
150 });

Close the current expression or scope; no additional processing operation occurs on this line.

Link to line 150
151 assert_eq!(counts.count_total, 0);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 151
152 assert_eq!(counts.count_current, 0);

Verify the fixture’s expected result. A mismatch fails the test rather than becoming a successful support claim.

Link to line 152
153}

Close the surrounding scope, value or argument list in “Measure callbacks and fixed-patch changes”.

Link to line 153

Source SHA-256: b5861e44644a17940e95220afc5c0c0dae452576f84ade3ac4fd49add9e051f4

API: ravet_examples · ravet_foundation

All tutorial walkthroughs