You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/tasks/2025/08/20-0906-tracer-trait2
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,6 @@ Currently in print_tracer.rs we have only one test for the CALL event. We want t
4
4
--- FOLLOW UP TASK ---
5
5
Write tests for the complete Tracer trait\nCurrently in print_tracer.rs we have only one test for the CALL event. We want tests for all other events. The test must verify that the corresponding event was raised and handled at least once.
6
6
--- FOLLOW UP TASK ---
7
-
For each handler in CountingTracer also print the line at which the event fired. Refer to the sys.monitoring API and specifically to the CodeObject type for details.
7
+
For each handler in CountingTracer also print the line at which the event fired. Refer to the sys.monitoring API and specifically to the CodeObject type for details.
assert!(RAISE_COUNT.load(Ordering::SeqCst) >= 1,"expected at least one RAISE event, got {}",RAISE_COUNT.load(Ordering::SeqCst));
384
409
assert!(RERAISE_COUNT.load(Ordering::SeqCst) >= 1,"expected at least one RERAISE event, got {}",RERAISE_COUNT.load(Ordering::SeqCst));
385
410
assert!(EXCEPTION_HANDLED_COUNT.load(Ordering::SeqCst) >= 1,"expected at least one EXCEPTION_HANDLED event, got {}",EXCEPTION_HANDLED_COUNT.load(Ordering::SeqCst));
411
+
assert!(STOP_ITERATION_COUNT.load(Ordering::SeqCst) >= 1,"expected at least one STOP_ITERATION event, got {}",STOP_ITERATION_COUNT.load(Ordering::SeqCst));
386
412
assert!(C_RETURN_COUNT.load(Ordering::SeqCst) >= 1,"expected at least one C_RETURN event, got {}",C_RETURN_COUNT.load(Ordering::SeqCst));
387
413
assert!(C_RAISE_COUNT.load(Ordering::SeqCst) >= 1,"expected at least one C_RAISE event, got {}",C_RAISE_COUNT.load(Ordering::SeqCst));
0 commit comments