Lines Matching refs:scope
75 let mut scope = Scope { in arbitrary() localVariable
94 choices.push(|input, scope| { in arbitrary()
95 let id = scope.next_id(); in arbitrary()
96 let wasm = scope.config.generate(input, Some(1000))?; in arbitrary()
97 scope.modules.insert(id); in arbitrary()
104 if swarm.module_drop && !scope.modules.is_empty() { in arbitrary()
105 choices.push(|input, scope| { in arbitrary()
106 let modules: Vec<_> = scope.modules.iter().collect(); in arbitrary()
108 scope.modules.remove(&id); in arbitrary()
112 if swarm.instance_new && !scope.modules.is_empty() { in arbitrary()
113 choices.push(|input, scope| { in arbitrary()
114 let modules: Vec<_> = scope.modules.iter().collect(); in arbitrary()
116 let id = scope.next_id(); in arbitrary()
117 scope.instances.insert(id); in arbitrary()
121 if swarm.instance_drop && !scope.instances.is_empty() { in arbitrary()
122 choices.push(|input, scope| { in arbitrary()
123 let instances: Vec<_> = scope.instances.iter().collect(); in arbitrary()
125 scope.instances.remove(&id); in arbitrary()
129 if swarm.call_exported_func && !scope.instances.is_empty() { in arbitrary()
130 choices.push(|input, scope| { in arbitrary()
131 let instances: Vec<_> = scope.instances.iter().collect(); in arbitrary()
142 calls.push(c(input, &mut scope)?); in arbitrary()