@@ -143,6 +143,7 @@ fn test_output(trace_message_fn: fn(&str) -> String) -> String {
143
143
}
144
144
}
145
145
146
+ #[ expect( clippy:: too_many_lines) ]
146
147
fn detailed_debugging_trace_message ( test_name : & str ) -> String {
147
148
formatdoc ! { r"
148
149
[test name] trace_info_integrationtest::test_trace::test_debugging_trace_{test_name}
@@ -154,6 +155,40 @@ fn detailed_debugging_trace_message(test_name: &str) -> String {
154
155
│ ├─ [caller address] [..]
155
156
│ ├─ [call type] Call
156
157
│ ├─ [call result] success: array![RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![] }}, RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![] }}] }}, RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![] }}]
158
+ │ ├─ [function call tree]
159
+ │ │ └─ [inlined] trace_info::SimpleContract::__wrapper__RecursiveCallerImpl__execute_calls
160
+ │ │ ├─ [inlined] core::array::ArraySerde::deserialize
161
+ │ │ │ └─ [inlined] core::array::deserialize_array_helper
162
+ │ │ │ └─ [inlined] trace_info::RecursiveCallSerde::deserialize
163
+ │ │ │ └─ [inlined] core::array::ArraySerde::deserialize
164
+ │ │ │ └─ [inlined] core::array::deserialize_array_helper
165
+ │ │ │ └─ [inlined] trace_info::RecursiveCallSerde::deserialize
166
+ │ │ │ └─ [inlined] core::array::ArraySerde::deserialize
167
+ │ │ │ └─ [inlined] core::array::deserialize_array_helper
168
+ │ │ ├─ [inlined] trace_info::SimpleContract::RecursiveCallerImpl::execute_calls[182-514]
169
+ │ │ │ ├─ [inlined] core::array::ArrayTCloneImpl::clone
170
+ │ │ │ │ └─ [inlined] core::array::ArrayTCloneImpl::clone[120-295]
171
+ │ │ │ │ └─ [inlined] trace_info::RecursiveCallClone::clone
172
+ │ │ │ │ └─ [inlined] core::array::ArrayTCloneImpl::clone
173
+ │ │ │ │ └─ [inlined] core::array::ArrayTCloneImpl::clone[120-295]
174
+ │ │ │ ├─ [inlined] core::array::ArraySerde::serialize
175
+ │ │ │ │ └─ [inlined] core::array::serialize_array_helper
176
+ │ │ │ │ └─ [inlined] trace_info::RecursiveCallSerde::serialize
177
+ │ │ │ │ └─ [inlined] core::array::ArraySerde::serialize
178
+ │ │ │ │ └─ [inlined] core::array::serialize_array_helper
179
+ │ │ │ └─ [inlined] core::array::ArraySerde::deserialize
180
+ │ │ │ └─ [inlined] core::array::deserialize_array_helper
181
+ │ │ │ └─ [inlined] trace_info::RecursiveCallSerde::deserialize
182
+ │ │ │ └─ [inlined] core::array::ArraySerde::deserialize
183
+ │ │ │ └─ [inlined] core::array::deserialize_array_helper
184
+ │ │ └─ [inlined] core::array::ArraySerde::serialize
185
+ │ │ └─ [inlined] core::array::serialize_array_helper
186
+ │ │ └─ [inlined] trace_info::RecursiveCallSerde::serialize
187
+ │ │ └─ [inlined] core::array::ArraySerde::serialize
188
+ │ │ └─ [inlined] core::array::serialize_array_helper
189
+ │ │ └─ [inlined] trace_info::RecursiveCallSerde::serialize
190
+ │ │ └─ [inlined] core::array::ArraySerde::serialize
191
+ │ │ └─ [inlined] core::array::serialize_array_helper
157
192
│ ├─ [selector] execute_calls
158
193
│ │ ├─ [contract name] SimpleContract
159
194
│ │ ├─ [entry point type] External
@@ -162,38 +197,81 @@ fn detailed_debugging_trace_message(test_name: &str) -> String {
162
197
│ │ ├─ [caller address] [..]
163
198
│ │ ├─ [call type] Call
164
199
│ │ ├─ [call result] success: array![RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![] }}, RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![] }}]
200
+ │ │ ├─ [function call tree]
201
+ │ │ │ └─ [inlined] trace_info::SimpleContract::__wrapper__RecursiveCallerImpl__execute_calls
202
+ │ │ │ ├─ [inlined] core::array::ArraySerde::deserialize
203
+ │ │ │ │ └─ [inlined] core::array::deserialize_array_helper
204
+ │ │ │ │ └─ [inlined] trace_info::RecursiveCallSerde::deserialize
205
+ │ │ │ │ └─ [inlined] core::array::ArraySerde::deserialize
206
+ │ │ │ │ └─ [inlined] core::array::deserialize_array_helper
207
+ │ │ │ ├─ [inlined] trace_info::SimpleContract::RecursiveCallerImpl::execute_calls[182-514]
208
+ │ │ │ │ ├─ [inlined] core::array::ArrayTCloneImpl::clone
209
+ │ │ │ │ │ └─ [inlined] core::array::ArrayTCloneImpl::clone[120-295]
210
+ │ │ │ │ ├─ [inlined] core::array::ArraySerde::serialize
211
+ │ │ │ │ │ └─ [inlined] core::array::serialize_array_helper
212
+ │ │ │ │ └─ [inlined] core::array::ArraySerde::deserialize
213
+ │ │ │ │ └─ [inlined] core::array::deserialize_array_helper
214
+ │ │ │ └─ [inlined] core::array::ArraySerde::serialize
215
+ │ │ │ └─ [inlined] core::array::serialize_array_helper
216
+ │ │ │ └─ [inlined] trace_info::RecursiveCallSerde::serialize
217
+ │ │ │ └─ [inlined] core::array::ArraySerde::serialize
218
+ │ │ │ └─ [inlined] core::array::serialize_array_helper
165
219
│ │ ├─ [selector] execute_calls
166
220
│ │ │ ├─ [contract name] SimpleContract
167
221
│ │ │ ├─ [entry point type] External
168
222
│ │ │ ├─ [calldata] array![]
169
223
│ │ │ ├─ [contract address] [..]
170
224
│ │ │ ├─ [caller address] [..]
171
225
│ │ │ ├─ [call type] Call
172
- │ │ │ └─ [call result] success: array![]
226
+ │ │ │ ├─ [call result] success: array![]
227
+ │ │ │ └─ [function call tree]
228
+ │ │ │ └─ [inlined] trace_info::SimpleContract::__wrapper__RecursiveCallerImpl__execute_calls
229
+ │ │ │ ├─ [inlined] core::array::ArraySerde::deserialize
230
+ │ │ │ │ └─ [inlined] core::array::deserialize_array_helper
231
+ │ │ │ ├─ [inlined] trace_info::SimpleContract::RecursiveCallerImpl::execute_calls[182-514]
232
+ │ │ │ └─ [inlined] core::array::ArraySerde::serialize
233
+ │ │ │ └─ [inlined] core::array::serialize_array_helper
173
234
│ │ └─ [selector] execute_calls
174
235
│ │ ├─ [contract name] SimpleContract
175
236
│ │ ├─ [entry point type] External
176
237
│ │ ├─ [calldata] array![]
177
238
│ │ ├─ [contract address] [..]
178
239
│ │ ├─ [caller address] [..]
179
240
│ │ ├─ [call type] Call
180
- │ │ └─ [call result] success: array![]
241
+ │ │ ├─ [call result] success: array![]
242
+ │ │ └─ [function call tree]
243
+ │ │ └─ [inlined] trace_info::SimpleContract::__wrapper__RecursiveCallerImpl__execute_calls
244
+ │ │ ├─ [inlined] core::array::ArraySerde::deserialize
245
+ │ │ │ └─ [inlined] core::array::deserialize_array_helper
246
+ │ │ ├─ [inlined] trace_info::SimpleContract::RecursiveCallerImpl::execute_calls[182-514]
247
+ │ │ └─ [inlined] core::array::ArraySerde::serialize
248
+ │ │ └─ [inlined] core::array::serialize_array_helper
181
249
│ └─ [selector] execute_calls
182
250
│ ├─ [contract name] SimpleContract
183
251
│ ├─ [entry point type] External
184
252
│ ├─ [calldata] array![]
185
253
│ ├─ [contract address] [..]
186
254
│ ├─ [caller address] [..]
187
255
│ ├─ [call type] Call
188
- │ └─ [call result] success: array![]
256
+ │ ├─ [call result] success: array![]
257
+ │ └─ [function call tree]
258
+ │ └─ [inlined] trace_info::SimpleContract::__wrapper__RecursiveCallerImpl__execute_calls
259
+ │ ├─ [inlined] core::array::ArraySerde::deserialize
260
+ │ │ └─ [inlined] core::array::deserialize_array_helper
261
+ │ ├─ [inlined] trace_info::SimpleContract::RecursiveCallerImpl::execute_calls[182-514]
262
+ │ └─ [inlined] core::array::ArraySerde::serialize
263
+ │ └─ [inlined] core::array::serialize_array_helper
189
264
└─ [selector] fail
190
265
├─ [contract name] SimpleContract
191
266
├─ [entry point type] External
192
267
├─ [calldata] array![0x1, 0x2, 0x3, 0x4, 0x5]
193
268
├─ [contract address] [..]
194
269
├─ [caller address] [..]
195
270
├─ [call type] Call
196
- └─ [call result] panic: (0x1, 0x2, 0x3, 0x4, 0x5)
271
+ ├─ [call result] panic: (0x1, 0x2, 0x3, 0x4, 0x5)
272
+ └─ [function call tree]
273
+ └─ [inlined] trace_info::SimpleContract::__wrapper__FailingImpl__fail
274
+ └─ [inlined] core::array::deserialize_array_helper
197
275
" }
198
276
}
199
277
@@ -208,6 +286,7 @@ fn detailed_debugging_trace_message_fork(test_name: &str) -> String {
208
286
│ ├─ [caller address] [..]
209
287
│ ├─ [call type] Call
210
288
│ ├─ [call result] success: array![RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![] }}, RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![] }}] }}, RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![] }}]
289
+ │ ├─ [function trace error] function trace is not supported for forked contracts
211
290
│ ├─ [selector] execute_calls
212
291
│ │ ├─ [contract name] forked contract
213
292
│ │ ├─ [entry point type] External
@@ -216,38 +295,43 @@ fn detailed_debugging_trace_message_fork(test_name: &str) -> String {
216
295
│ │ ├─ [caller address] [..]
217
296
│ │ ├─ [call type] Call
218
297
│ │ ├─ [call result] success: array![RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![] }}, RecursiveCall {{ contract_address: ContractAddress([..]), payload: array![] }}]
298
+ │ │ ├─ [function trace error] function trace is not supported for forked contracts
219
299
│ │ ├─ [selector] execute_calls
220
300
│ │ │ ├─ [contract name] forked contract
221
301
│ │ │ ├─ [entry point type] External
222
302
│ │ │ ├─ [calldata] array![]
223
303
│ │ │ ├─ [contract address] [..]
224
304
│ │ │ ├─ [caller address] [..]
225
305
│ │ │ ├─ [call type] Call
226
- │ │ │ └─ [call result] success: array![]
306
+ │ │ │ ├─ [call result] success: array![]
307
+ │ │ │ └─ [function trace error] function trace is not supported for forked contracts
227
308
│ │ └─ [selector] execute_calls
228
309
│ │ ├─ [contract name] forked contract
229
310
│ │ ├─ [entry point type] External
230
311
│ │ ├─ [calldata] array![]
231
312
│ │ ├─ [contract address] [..]
232
313
│ │ ├─ [caller address] [..]
233
314
│ │ ├─ [call type] Call
234
- │ │ └─ [call result] success: array![]
315
+ │ │ ├─ [call result] success: array![]
316
+ │ │ └─ [function trace error] function trace is not supported for forked contracts
235
317
│ └─ [selector] execute_calls
236
318
│ ├─ [contract name] forked contract
237
319
│ ├─ [entry point type] External
238
320
│ ├─ [calldata] array![]
239
321
│ ├─ [contract address] [..]
240
322
│ ├─ [caller address] [..]
241
323
│ ├─ [call type] Call
242
- │ └─ [call result] success: array![]
324
+ │ ├─ [call result] success: array![]
325
+ │ └─ [function trace error] function trace is not supported for forked contracts
243
326
└─ [selector] fail
244
327
├─ [contract name] forked contract
245
328
├─ [entry point type] External
246
329
├─ [calldata] array![0x1, 0x2, 0x3, 0x4, 0x5]
247
330
├─ [contract address] [..]
248
331
├─ [caller address] [..]
249
332
├─ [call type] Call
250
- └─ [call result] panic: (0x1, 0x2, 0x3, 0x4, 0x5)
333
+ ├─ [call result] panic: (0x1, 0x2, 0x3, 0x4, 0x5)
334
+ └─ [function trace error] function trace is not supported for forked contracts
251
335
" }
252
336
}
253
337
0 commit comments